OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b9a237
)
afs: dget_parent() can't return a negative dentry
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 29 Sep 2013 20:29:04 +0000
(16:29 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 30 Sep 2013 02:02:24 +0000
(22:02 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/afs/dir.c
patch
|
blob
|
history
diff --git
a/fs/afs/dir.c
b/fs/afs/dir.c
index
646337d
..
5293003
100644
(file)
--- a/
fs/afs/dir.c
+++ b/
fs/afs/dir.c
@@
-600,9
+600,6
@@
static int afs_d_revalidate(struct dentry *dentry, unsigned int flags)
/* lock down the parent dentry so we can peer at it */
parent = dget_parent(dentry);
- if (!parent->d_inode)
- goto out_bad;
-
dir = AFS_FS_I(parent->d_inode);
/* validate the parent directory */