diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2014-03-23 23:58:16 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-03-30 10:47:35 -0400 |
commit | 47f72efa8f32e8182cd4a70d5a9a6d07651093fc (patch) | |
tree | 56313bcc33febc6e3e75ed2a65a59505603e2f08 /net | |
parent | 2336745e87a646a3dc9570f082b85df519ee523e (diff) |
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: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/sunrpc/xprtsock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 4b921a926994..63ae657f255b 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c | |||
@@ -2545,6 +2545,10 @@ static void bc_close(struct rpc_xprt *xprt) | |||
2545 | 2545 | ||
2546 | static void bc_destroy(struct rpc_xprt *xprt) | 2546 | static void bc_destroy(struct rpc_xprt *xprt) |
2547 | { | 2547 | { |
2548 | dprintk("RPC: bc_destroy xprt %p\n", xprt); | ||
2549 | |||
2550 | xs_xprt_free(xprt); | ||
2551 | module_put(THIS_MODULE); | ||
2548 | } | 2552 | } |
2549 | 2553 | ||
2550 | static struct rpc_xprt_ops xs_local_ops = { | 2554 | static struct rpc_xprt_ops xs_local_ops = { |