提交 f15844e0 编写于 作者: D Dominique Martinet 提交者: Eric Van Hensbergen

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
bdd5c28d
"9p: fix return value in case in v9fs_fid_xattr_set()"

(The function returns a negative error on error, as expected)
Signed-off-by: NDominique Martinet <dominique.martinet@cea.fr>
Signed-off-by: NEric Van Hensbergen <ericvh@gmail.com>
上级 afe604d0
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册