linux-stable/net/sunrpc/xprtrdma
Zhang Xiaoxu 53ed7020df xprtrdma: Fix regbuf data not freed in rpcrdma_req_create()
[ Upstream commit 9181f40fb2 ]

If rdma receive buffer allocate failed, should call rpcrdma_regbuf_free()
to free the send buffer, otherwise, the buffer data will be leaked.

Fixes: bb93a1ae2b ("xprtrdma: Allocate req's regbufs at xprt create time")
Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:26:09 +01:00
..
backchannel.c xprtrdma: Remove definitions of RPCDBG_FACILITY 2022-01-14 10:35:08 -05:00
frwr_ops.c RDMA: Split kernel-only global device caps from uverbs device caps 2022-04-06 15:02:13 -03:00
Makefile svcrdma: Add a "parsed chunk list" data structure 2020-11-30 13:00:22 -05:00
module.c SUNRPC: xprt_load_transport() needs to support the netid "rdma6" 2020-12-02 14:05:52 -05:00
rpc_rdma.c xprtrdma: treat all calls not a bcall when bc_serv is NULL 2022-05-31 17:09:30 -04:00
svc_rdma.c svcrdma: Deprecate stat variables that are no longer used 2021-01-25 09:36:28 -05:00
svc_rdma_backchannel.c SUNRPC: Rename svc_close_xprt() 2022-02-28 10:26:40 -05:00
svc_rdma_pcl.c svcrdma: Add a "parsed chunk list" data structure 2020-11-30 13:00:22 -05:00
svc_rdma_recvfrom.c SUNRPC: Remove svc_rqst::rq_xprt_hlen 2022-05-19 12:25:39 -04:00
svc_rdma_rw.c SUNRPC: Trap RDMA segment overflows 2022-06-02 13:05:58 -04:00
svc_rdma_sendto.c svcrdma: Split the svcrdma_wc_send() tracepoint 2021-10-04 15:40:15 -04:00
svc_rdma_transport.c SUNRPC: Use RMW bitops in single-threaded hot paths 2022-05-23 11:06:29 -04:00
transport.c SUNRPC: Fix an RPC/RDMA performance regression 2022-07-10 19:00:53 -04:00
verbs.c xprtrdma: Fix regbuf data not freed in rpcrdma_req_create() 2022-12-31 13:26:09 +01:00
xprt_rdma.h xprtrdma: Remove rpcrdma_ep::re_implicit_roundup 2021-10-20 18:09:54 -04:00