]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Call bnxt_ethtool_free() in bnxt_init_one() error path
authorSomnath Kotur <somnath.kotur@broadcom.com>
Fri, 18 Jun 2021 06:07:27 +0000 (02:07 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jun 2021 19:00:27 +0000 (12:00 -0700)
commitfab9efda8a213903eb2b4f745e2652632bf95b13
treef753c97bd022f5ff4842a25b0d8e66088c79c612
parent380515d6f54efec62598cfc85af19c8e8fa4708d
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: b0656ef91ce3 ("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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c