diff options
author | Dominique Martinet <dominique.martinet@cea.fr> | 2014-05-21 10:02:12 +0200 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2014-06-01 15:31:34 -0500 |
commit | f15844e0777fec936f87a87f97394f83911dacd3 (patch) | |
tree | e00bd5e38eacc796c42af19b65e4dee9f3249851 /fs/9p/xattr.c | |
parent | afe604d01ff62dd664440692d1c13d18578ddeaa (diff) |
9P: fix return value in v9fs_fid_xattr_set
v9fs_fid_xattr_set is supposed to return 0 on success.
This corrects the behaviour introduced in commit
bdd5c28dcb8330b9074404cc92a0b83aae5606a
"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 <dominique.martinet@cea.fr>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/xattr.c')
-rw-r--r-- | fs/9p/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/9p/xattr.c b/fs/9p/xattr.c index 04133a1fd9cb..f95e01e058e4 100644 --- a/fs/9p/xattr.c +++ b/fs/9p/xattr.c @@ -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; |