Commit 2ad8e57
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: f1e50b2 ("bnxt_en: Fix trimming of P5 RX and TX rings")
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://lore.kernel.org/r/20240117234515.226944-3-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 3c1069f commit 2ad8e57
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6926 | 6926 | | |
6927 | 6927 | | |
6928 | 6928 | | |
6929 | | - | |
| 6929 | + | |
6930 | 6930 | | |
6931 | 6931 | | |
6932 | 6932 | | |
| |||
6938 | 6938 | | |
6939 | 6939 | | |
6940 | 6940 | | |
| 6941 | + | |
6941 | 6942 | | |
6942 | | - | |
| 6943 | + | |
6943 | 6944 | | |
6944 | 6945 | | |
6945 | 6946 | | |
| |||
0 commit comments