aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominique Martinet <dominique.martinet@cea.fr>2014-05-21 04:02:12 -0400
committerEric Van Hensbergen <ericvh@gmail.com>2014-06-01 16:31:34 -0400
commitf15844e0777fec936f87a87f97394f83911dacd3 (patch)
treee00bd5e38eacc796c42af19b65e4dee9f3249851
parentafe604d01ff62dd664440692d1c13d18578ddeaa (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>
-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,
156 offset += write_count; 156 offset += write_count;
157 value_len -= write_count; 157 value_len -= write_count;
158 } 158 }
159 retval = offset; 159 retval = 0;
160err: 160err:
161 p9_client_clunk(fid); 161 p9_client_clunk(fid);
162 return retval; 162 return retval;