Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47f72efa authored by Kinglong Mee's avatar Kinglong Mee Committed by J. Bruce Fields
Browse files

NFSD: Free backchannel xprt in bc_destroy



Backchannel xprt isn't freed right now.
Free it in bc_destroy, and put the reference of THIS_MODULE.

Signed-off-by: default avatarKinglong Mee <kinglongmee@gmail.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 2336745e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2545,6 +2545,10 @@ static void bc_close(struct rpc_xprt *xprt)

static void bc_destroy(struct rpc_xprt *xprt)
{
	dprintk("RPC:       bc_destroy xprt %p\n", xprt);

	xs_xprt_free(xprt);
	module_put(THIS_MODULE);
}

static struct rpc_xprt_ops xs_local_ops = {