Commit fea39c5d authored by YueHaibing's avatar YueHaibing Committed by Dapeng Yu
Browse files

net: txgbe: Fix memleak in txgbe_calc_eeprom_checksum()

mainline inclusion
from mainline-v6.2-rc1
commit a068d33e
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8LOJU

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a068d33e542f5d5be2e5de3cf1122c4347d3e2af



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

eeprom_ptrs should be freed before returned.

Fixes: 049fe536 ("net: txgbe: Add operations to interact with firmware")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarDapeng Yu <dapeng.yu@windriver.com>
parent bc6f27d8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment