Skip to content

Commit

Permalink
9P: fix return value in v9fs_fid_xattr_set
Browse files Browse the repository at this point in the history
v9fs_fid_xattr_set is supposed to return 0 on success.

This corrects the behaviour introduced in commit
bdd5c28
"9p: fix return value in case in v9fs_fid_xattr_set()"

(The function returns a negative error on error, as expected)

Signed-off-by: Dominique Martinet <[email protected]>
Signed-off-by: Eric Van Hensbergen <[email protected]>
  • Loading branch information
Dominique Martinet authored and ericvh committed Jun 1, 2014
1 parent afe604d commit f15844e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/9p/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ int v9fs_fid_xattr_set(struct p9_fid *fid, const char *name,
offset += write_count;
value_len -= write_count;
}
retval = offset;
retval = 0;
err:
p9_client_clunk(fid);
return retval;
Expand Down

0 comments on commit f15844e

Please sign in to comment.