diff options
author | Bob Pearson <rpearsonhpe@gmail.com> | 2021-07-05 11:41:54 -0500 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-07-15 14:44:12 -0300 |
commit | b18c7da63fcb46e2f9a093cc18d7c219e13a887c (patch) | |
tree | a5c6f22a30c4b51ceead98508031d9850d0be343 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | c9538831b353b96cb37092c3d3e929d67fd43c5f (diff) |
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: 8700e3e7c485 ("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>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions