projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f22578
)
cifs: Fix bug when checking error condition in cifs_rename_pending_delete()
author
Sachin Prabhu
<
[email protected]
>
Tue, 5 Mar 2013 19:25:55 +0000
(19:25 +0000)
committer
Steve French
<
[email protected]
>
Thu, 7 Mar 2013 00:28:35 +0000
(18:28 -0600)
Fix check for error condition after setting attributes with
CIFSSMBSetFileInfo().
Signed-off-by: Sachin Prabhu <
[email protected]
>
Reviewed-by: Jeff Layton <
[email protected]
>
Reviewed-by: Pavel Shilovsky <
[email protected]
>
Signed-off-by: Steve French <
[email protected]
>
fs/cifs/inode.c
patch
|
blob
|
history
diff --git
a/fs/cifs/inode.c
b/fs/cifs/inode.c
index 83f2606c76d00f090ec6a5b8e550a102de3fadbc..e7ae45cd94ef896bdd3ad9d375d90b5dc8c835f8 100644
(file)
--- a/
fs/cifs/inode.c
+++ b/
fs/cifs/inode.c
@@
-1023,7
+1023,7
@@
cifs_rename_pending_delete(const char *full_path, struct dentry *dentry,
current->tgid);
/* although we would like to mark the file hidden
if that fails we will still try to rename it */
- if (
rc != 0
)
+ if (
!rc
)
cifsInode->cifsAttrs = dosattr;
else
dosattr = origattr; /* since not able to change them */