From: Al Viro Date: Sun, 29 Sep 2013 20:29:04 +0000 (-0400) Subject: afs: dget_parent() can't return a negative dentry X-Git-Tag: MMI-PSA29.97-13-9~13520^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=13f3583892cb7afdb2e9eb0207dc4e03ec6f01fd;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git afs: dget_parent() can't return a negative dentry Signed-off-by: Al Viro --- diff --git a/fs/afs/dir.c b/fs/afs/dir.c index 646337dc5201..529300327f45 100644 --- 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 */