summaryrefslogtreecommitdiffstats
path: root/fs/9p/xattr.c
diff options
context:
space:
mode:
authorDominique Martinet <dominique.martinet@cea.fr>2014-05-21 10:02:12 +0200
committerEric Van Hensbergen <ericvh@gmail.com>2014-06-01 22:31:34 +0200
commitf15844e0777fec936f87a87f97394f83911dacd3 (patch)
treee00bd5e38eacc796c42af19b65e4dee9f3249851 /fs/9p/xattr.c
parentfs/9p: adjust sscanf parameters accordingly to the variable types (diff)
downloadlinux-f15844e0777fec936f87a87f97394f83911dacd3.tar.xz
linux-f15844e0777fec936f87a87f97394f83911dacd3.zip
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.c2
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;