Skip to content

Commit

Permalink
NFSD: Free backchannel xprt in bc_destroy
Browse files Browse the repository at this point in the history
Backchannel xprt isn't freed right now.
Free it in bc_destroy, and put the reference of THIS_MODULE.

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
Kinglong Mee authored and J. Bruce Fields committed Mar 30, 2014
1 parent 2336745 commit 47f72ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net/sunrpc/xprtsock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 47f72ef

Please sign in to comment.