Commit 774254f6 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] cifs_setattr() retval fix

CIFS is failing to propagate the inode_setattr() return value.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 735fe54f
......@@ -954,7 +954,8 @@ cifs_setattr(struct dentry *direntry, struct iattr *attrs)
}
/* do not need local check to inode_check_ok since the server does that */
inode_setattr(direntry->d_inode, attrs);
if (!rc)
rc = inode_setattr(direntry->d_inode, attrs);
if (full_path)
kfree(full_path);
FreeXid(xid);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment