mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 14:11:20 +00:00
bnxt_en: Call bnxt_ethtool_free() in bnxt_init_one() error path
bnxt_ethtool_init() may have allocated some memory and we need to
call bnxt_ethtool_free() to properly unwind if bnxt_init_one()
fails.
Fixes: 7c38091814
("bnxt_en: Refactor bnxt_init_one() and turn on TPA support on 57500 chips.")
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c12e1643d2
commit
03400aaa69
1 changed files with 1 additions and 0 deletions
|
@ -13160,6 +13160,7 @@ init_err_pci_clean:
|
||||||
bnxt_hwrm_func_drv_unrgtr(bp);
|
bnxt_hwrm_func_drv_unrgtr(bp);
|
||||||
bnxt_free_hwrm_short_cmd_req(bp);
|
bnxt_free_hwrm_short_cmd_req(bp);
|
||||||
bnxt_free_hwrm_resources(bp);
|
bnxt_free_hwrm_resources(bp);
|
||||||
|
bnxt_ethtool_free(bp);
|
||||||
kfree(bp->fw_health);
|
kfree(bp->fw_health);
|
||||||
bp->fw_health = NULL;
|
bp->fw_health = NULL;
|
||||||
bnxt_cleanup_pci(bp);
|
bnxt_cleanup_pci(bp);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue