Commit 1cfb7072 authored by Al Viro's avatar Al Viro

nfs: dget_parent() never returns NULL

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 516162b9
...@@ -452,11 +452,9 @@ int nfs_statfs(struct dentry *dentry, struct kstatfs *buf) ...@@ -452,11 +452,9 @@ int nfs_statfs(struct dentry *dentry, struct kstatfs *buf)
struct dentry *pd_dentry; struct dentry *pd_dentry;
pd_dentry = dget_parent(dentry); pd_dentry = dget_parent(dentry);
if (pd_dentry != NULL) {
nfs_zap_caches(d_inode(pd_dentry)); nfs_zap_caches(d_inode(pd_dentry));
dput(pd_dentry); dput(pd_dentry);
} }
}
nfs_free_fattr(res.fattr); nfs_free_fattr(res.fattr);
if (error < 0) if (error < 0)
goto out_err; goto out_err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment