Commit bd079aaa authored by Somnath Kotur's avatar Somnath Kotur Committed by Zheng Zengkai
Browse files

bnxt_en: Call bnxt_ethtool_free() in bnxt_init_one() error path



stable inclusion
from stable-5.10.46
commit c5d70dbc4d0b1dac909a7cb5a26b7c51fceacebe
bugzilla: 168323
CVE: NA

--------------------------------

[ Upstream commit 03400aaa ]

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: 7c380918 ("bnxt_en: Refactor bnxt_init_one() and turn on TPA support on 57500 chips.")
Signed-off-by: default avatarSomnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: default avatarMichael Chan <michael.chan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarWeilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 14f43588
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment