diff options
author | Michael Chan <[email protected]> | 2024-01-17 15:45:12 -0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-01-19 21:15:12 -0800 |
commit | 2ad8e57338ac7b1e149d458669a95132e2460096 (patch) | |
tree | 6e3aaad87fa21b61eab4195c4f7137ad4f518f4d /scripts/generate_rust_analyzer.py | |
parent | 3c1069fa42872f95cf3c6fedf80723d391e12d57 (diff) |
bnxt_en: Fix memory leak in bnxt_hwrm_get_rings()
bnxt_hwrm_get_rings() can abort and return error when there are not
enough ring resources. It aborts without releasing the HWRM DMA buffer,
causing a dma_pool_destroy warning when the driver is unloaded:
bnxt_en 0000:99:00.0: dma_pool_destroy bnxt_hwrm, 000000005b089ba8 busy
Fixes: f1e50b276d37 ("bnxt_en: Fix trimming of P5 RX and TX rings")
Reviewed-by: Somnath Kotur <[email protected]>
Signed-off-by: Michael Chan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions