]> git.hungrycats.org Git - linux/commit
nfsd/callback: Cleanup callback cred on shutdown
authorKinglong Mee <kinglongmee@gmail.com>
Sun, 5 Feb 2017 01:57:07 +0000 (09:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Oct 2017 15:09:06 +0000 (17:09 +0200)
commitc2c6f43e023a40c4ceadb3de46ac4cd2eb53d78e
tree17b6f57fb30616aafb1fd7cbd15382ddc9bfedb3
parent429a4ac5895dc048a7de2909edcc53b75f9669b5
nfsd/callback: Cleanup callback cred on shutdown

[ Upstream commit f7d1ddbe7648af7460d23688c8c131342eb43b3a ]

The rpccred gotten from rpc_lookup_machine_cred() should be put when
state is shutdown.

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfsd/nfs4callback.c
fs/nfsd/nfs4state.c
fs/nfsd/state.h