diff options
author | Kalesh AP <[email protected]> | 2023-05-18 01:10:59 -0700 |
---|---|---|
committer | Jason Gunthorpe <[email protected]> | 2023-05-19 13:09:25 -0300 |
commit | 349e3c0cf239cc01d58a1e6c749e171de014cd6a (patch) | |
tree | 33c52cc5dfc2a05ce45ab2eddec7d3cd0ebd7543 /drivers/fpga/fpga-bridge.c | |
parent | 56518a603fd2bf74762d176ac980572db84a3e14 (diff) |
RDMA/bnxt_re: Fix a possible memory leak
Inside bnxt_qplib_create_cq(), when the check for NULL DPI fails, driver
returns directly without freeing the memory allocated inside
bnxt_qplib_alloc_init_hwq() routine.
Fixed this by moving the check for NULL DPI before invoking
bnxt_qplib_alloc_init_hwq().
Fixes: 1ac5a4047975 ("RDMA/bnxt_re: Add bnxt_re RoCE driver")
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Kashyap Desai <[email protected]>
Signed-off-by: Kalesh AP <[email protected]>
Signed-off-by: Selvin Xavier <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions