nfsd: call nfsd_last_thread() before final nfsd_put()
If write_ports_addfd or write_ports_addxprt fail, they call nfsd_put() without calling nfsd_last_thread(). This leaves nn->nfsd_serv pointing to a structure that has been freed. So remove 'static' from nfsd_last_thread() and call it when the nfsd_serv is about to be destroyed. Fixes: ec52361d ("SUNRPC: stop using ->sv_nrthreads as a refcount") Signed-off-by: NeilBrown <neilb@suse.de> Reviewed-by: Jeff Layton <jlayton@kernel.org> Cc: <stable@vger.kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
parent
bf51c52a
-
mentioned in commit c21acd67
-
mentioned in commit bb4f791c
-
mentioned in commit 03d68ffc
-
mentioned in commit 64e63041
-
mentioned in commit db5f2f4d
-
mentioned in commit db5f2f4d
-
mentioned in commit edbc5613
-
mentioned in commit edbc5613
-
mentioned in commit 838a602d
-
mentioned in commit ca791e1a
-
mentioned in commit eeae04bc
-
mentioned in commit 631e27be
Please register or sign in to comment