diff options
-rw-r--r-- | net/sunrpc/xprtrdma/svc_rdma_transport.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sunrpc/xprtrdma/svc_rdma_transport.c b/net/sunrpc/xprtrdma/svc_rdma_transport.c index 4bf8b5ad1675..e85ac77f4954 100644 --- a/net/sunrpc/xprtrdma/svc_rdma_transport.c +++ b/net/sunrpc/xprtrdma/svc_rdma_transport.c | |||
@@ -524,6 +524,8 @@ int svc_rdma_post_recv(struct svcxprt_rdma *xprt) | |||
524 | recv_wr.wr_id = (u64)(unsigned long)ctxt; | 524 | recv_wr.wr_id = (u64)(unsigned long)ctxt; |
525 | 525 | ||
526 | ret = ib_post_recv(xprt->sc_qp, &recv_wr, &bad_recv_wr); | 526 | ret = ib_post_recv(xprt->sc_qp, &recv_wr, &bad_recv_wr); |
527 | if (ret) | ||
528 | svc_rdma_put_context(ctxt, 1); | ||
527 | return ret; | 529 | return ret; |
528 | } | 530 | } |
529 | 531 | ||