Skip to content

Commit 963649d

Browse files
committed
Merge tag 'for-linus-3.16-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs
Pull 9p fixes from Eric Van Hensbergen: "Two bug fixes, one in xattr error path and the other in parsing major/minor numbers from devices" * tag 'for-linus-3.16-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs: 9P: fix return value in v9fs_fid_xattr_set fs/9p: adjust sscanf parameters accordingly to the variable types
2 parents 1662867 + f15844e commit 963649d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fs/9p/vfs_inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ static umode_t p9mode2unixmode(struct v9fs_session_info *v9ses,
147147
int major = -1, minor = -1;
148148

149149
strlcpy(ext, stat->extension, sizeof(ext));
150-
sscanf(ext, "%c %u %u", &type, &major, &minor);
150+
sscanf(ext, "%c %i %i", &type, &major, &minor);
151151
switch (type) {
152152
case 'c':
153153
res |= S_IFCHR;

fs/9p/xattr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ int v9fs_fid_xattr_set(struct p9_fid *fid, const char *name,
156156
offset += write_count;
157157
value_len -= write_count;
158158
}
159-
retval = offset;
159+
retval = 0;
160160
err:
161161
p9_client_clunk(fid);
162162
return retval;

0 commit comments

Comments
 (0)