diff options
author | Jianglei Nie <[email protected]> | 2022-07-14 14:15:05 +0800 |
---|---|---|
committer | Leon Romanovsky <[email protected]> | 2022-07-18 14:16:10 +0300 |
commit | b3236a64ddd125a455ef5b5316c1b9051b732974 (patch) | |
tree | a9dcab9a21f1dddfa4e8f13e377b53b82e698e68 /scripts/gdb/linux/proc.py | |
parent | e39c600049d0822284da2cef3bd7ced40dc3524f (diff) |
RDMA/qedr: Fix potential memory leak in __qedr_alloc_mr()
__qedr_alloc_mr() allocates a memory chunk for "mr->info.pbl_table" with
init_mr_info(). When rdma_alloc_tid() and rdma_register_tid() fail, "mr"
is released while "mr->info.pbl_table" is not released, which will lead
to a memory leak.
We should release the "mr->info.pbl_table" with qedr_free_pbl() when error
occurs to fix the memory leak.
Fixes: e0290cce6ac0 ("qedr: Add support for memory registeration verbs")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jianglei Nie <[email protected]>
Acked-by: Michal KalderonĀ <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions