diff options
Diffstat (limited to 'net/sunrpc/xprtrdma')
-rw-r--r-- | net/sunrpc/xprtrdma/transport.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/sunrpc/xprtrdma/transport.c b/net/sunrpc/xprtrdma/transport.c index 9d77bf25829f..0f7a1b9d05ad 100644 --- a/net/sunrpc/xprtrdma/transport.c +++ b/net/sunrpc/xprtrdma/transport.c | |||
@@ -251,9 +251,7 @@ xprt_rdma_destroy(struct rpc_xprt *xprt) | |||
251 | 251 | ||
252 | xprt_rdma_free_addresses(xprt); | 252 | xprt_rdma_free_addresses(xprt); |
253 | 253 | ||
254 | kfree(xprt->slot); | 254 | xprt_free(xprt); |
255 | xprt->slot = NULL; | ||
256 | kfree(xprt); | ||
257 | 255 | ||
258 | dprintk("RPC: %s: returning\n", __func__); | 256 | dprintk("RPC: %s: returning\n", __func__); |
259 | 257 | ||
@@ -401,8 +399,7 @@ out3: | |||
401 | out2: | 399 | out2: |
402 | rpcrdma_ia_close(&new_xprt->rx_ia); | 400 | rpcrdma_ia_close(&new_xprt->rx_ia); |
403 | out1: | 401 | out1: |
404 | kfree(xprt->slot); | 402 | xprt_free(xprt); |
405 | kfree(xprt); | ||
406 | return ERR_PTR(rc); | 403 | return ERR_PTR(rc); |
407 | } | 404 | } |
408 | 405 | ||