Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

nfs: dget_parent() never returns NULL



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 516162b9
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -452,11 +452,9 @@ int nfs_statfs(struct dentry *dentry, struct kstatfs *buf)
		struct dentry *pd_dentry;

		pd_dentry = dget_parent(dentry);
		if (pd_dentry != NULL) {
		nfs_zap_caches(d_inode(pd_dentry));
		dput(pd_dentry);
	}
	}
	nfs_free_fattr(res.fattr);
	if (error < 0)
		goto out_err;