nfsd: Fix an Oops in free_session()
authorTrond Myklebust <trondmy@gmail.com>
Tue, 9 Oct 2018 19:54:15 +0000 (15:54 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 29 Oct 2018 20:58:04 +0000 (16:58 -0400)
commitbb6ad5572c0022e17e846b382d7413cdcf8055be
tree9dd0c1cad4f1f1ae8188e3808a38aa0fdd7cf669
parentbd8d725078867cda250fe94b9c5a067b4a64ca74
nfsd: Fix an Oops in free_session()

In call_xpt_users(), we delete the entry from the list, but we
do not reinitialise it. This triggers the list poisoning when
we later call unregister_xpt_user() in nfsd4_del_conns().

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/svc_xprt.c