“1752b6a1b6340496a09134547dcb703a70d72d8b”上不存在“...v2/framework/git@gitcode.net:BaiXuePrincess/Paddle.git”
提交 758a3bf9 编写于 作者: C Chuck Lever

svcrdma: Fix double svc_rdma_send_ctxt_put() in an error path

This error path is almost never executed. Found by code inspection.

Fixes: 99722fe4 ("svcrdma: Persistently allocate and DMA-map Send buffers")
Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
上级 7dcf4ab9
......@@ -786,7 +786,6 @@ static int svc_rdma_send_error_msg(struct svcxprt_rdma *rdma,
struct svc_rqst *rqstp)
{
__be32 *p;
int ret;
p = ctxt->sc_xprt_buf;
trace_svcrdma_err_chunk(*p);
......@@ -798,13 +797,7 @@ static int svc_rdma_send_error_msg(struct svcxprt_rdma *rdma,
svc_rdma_save_io_pages(rqstp, ctxt);
ctxt->sc_send_wr.opcode = IB_WR_SEND;
ret = svc_rdma_send(rdma, &ctxt->sc_send_wr);
if (ret) {
svc_rdma_send_ctxt_put(rdma, ctxt);
return ret;
}
return 0;
return svc_rdma_send(rdma, &ctxt->sc_send_wr);
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册