diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-06-26 21:03:56 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-06-26 21:03:56 -0700 |
| commit | 774254f692ce98c4adea5a8447432e1ae5a5a16b (patch) | |
| tree | f7bd748ea12daf3b06a825ee714515e64feb0604 | |
| parent | 735fe54fad50bd9d00738207ba1b8ca8dd0c2681 (diff) | |
[PATCH] cifs_setattr() retval fix
CIFS is failing to propagate the inode_setattr() return value.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
| -rw-r--r-- | fs/cifs/inode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index c12231b48635..2a363d41790a 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c @@ -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); |
