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:36:38 +0000 (09:36 +0200)
commit085125572a453938bf4b0f483ccb0d76c40f1d1c
treea1e8d2b3a41993e1070432ab081f30e80ec101f8
parent0bb4a6f2ff1a9081a35b07760fa40f9880d16bc6
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