projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
500e2ab
)
cifs_lookup(): cifs_get_inode_...() never returns 0 with *inode left NULL
author
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 15 May 2018 01:26:32 +0000
(21:26 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 22 May 2018 18:28:02 +0000
(14:28 -0400)
not since 2004...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/cifs/dir.c
patch
|
blob
|
history
diff --git
a/fs/cifs/dir.c
b/fs/cifs/dir.c
index
81ba6e0
..
ecbf36c
100644
(file)
--- a/
fs/cifs/dir.c
+++ b/
fs/cifs/dir.c
@@
-812,7
+812,7
@@
cifs_lookup(struct inode *parent_dir_inode, struct dentry *direntry,
parent_dir_inode->i_sb, xid, NULL);
}
- if (
(rc == 0) && (newInode != NULL)
) {
+ if (
rc == 0
) {
d_add(direntry, newInode);
/* since paths are not looked up by component - the parent
directories are presumed to be good here */