mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
nfsd: fix nfsdfs inode reference count leak
I don't understand this code well, but I'm seeing a warning about a
still-referenced inode on unmount, and every other similar filesystem
does a dput() here.
Fixes: e8a79fb14f
("nfsd: add nfsd/clients directory")
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
681370f4b0
commit
bf2654017e
1 changed files with 1 additions and 0 deletions
|
@ -1335,6 +1335,7 @@ void nfsd_client_rmdir(struct dentry *dentry)
|
||||||
WARN_ON_ONCE(ret);
|
WARN_ON_ONCE(ret);
|
||||||
fsnotify_rmdir(dir, dentry);
|
fsnotify_rmdir(dir, dentry);
|
||||||
d_delete(dentry);
|
d_delete(dentry);
|
||||||
|
dput(dentry);
|
||||||
inode_unlock(dir);
|
inode_unlock(dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue