Skip to content

Commit bf26540

Browse files
author
J. Bruce Fields
committed
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: e8a79fb ("nfsd: add nfsd/clients directory") Signed-off-by: J. Bruce Fields <[email protected]>
1 parent 681370f commit bf26540

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/nfsd/nfsctl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,6 +1335,7 @@ void nfsd_client_rmdir(struct dentry *dentry)
13351335
WARN_ON_ONCE(ret);
13361336
fsnotify_rmdir(dir, dentry);
13371337
d_delete(dentry);
1338+
dput(dentry);
13381339
inode_unlock(dir);
13391340
}
13401341

0 commit comments

Comments
 (0)