rpc_pipefs: fix double-dput()
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 3 Apr 2018 05:15:46 +0000 (01:15 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2018 07:34:17 +0000 (09:34 +0200)
commit463f845986289852fa7a38a5ae78216a64b569c6
treeb48af6fd45110b3e8b1bef4425fb21e8069d53fb
parente2210c5414a8e05e14c5864180ec215dec343828
rpc_pipefs: fix double-dput()

commit 4a3877c4cedd95543f8726b0a98743ed8db0c0fb upstream.

if we ever hit rpc_gssd_dummy_depopulate() dentry passed to
it has refcount equal to 1.  __rpc_rmpipe() drops it and
dput() done after that hits an already freed dentry.

Cc: stable@kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/rpc_pipe.c