linux/drivers/infiniband/sw
Bob Pearson b18c7da63f RDMA/rxe: Fix memory leak in error path code
In rxe_mr_init_user() at the third error the driver fails to free the
memory at mr->map. This patch adds code to do that.  This error only
occurs if page_address() fails to return a non zero address which should
never happen for 64 bit architectures.

Fixes: 8700e3e7c4 ("Soft RoCE driver")
Link: https://lore.kernel.org/r/20210705164153.17652-1-rpearsonhpe@gmail.com
Reported by: Haakon Bugge <haakon.bugge@oracle.com>
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Reviewed-by: Zhu Yanjun <zyjzyj2000@gmail.com>
Reviewed-by: Håkon Bugge <haakon.bugge@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2021-07-15 14:44:12 -03:00
..
rdmavt Tracing updates for 5.14: 2021-07-03 11:13:22 -07:00
rxe RDMA/rxe: Fix memory leak in error path code 2021-07-15 14:44:12 -03:00
siw RDMA/siw: Release xarray entry 2021-05-10 14:06:45 -03:00
Makefile rdma/siw: addition to kernel build environment 2019-07-02 17:03:41 -03:00