]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
igb: fix nvm.ops.read() error handling
authorAleksandr Loktionov <aleksandr.loktionov@intel.com>
Tue, 25 Apr 2023 15:44:14 +0000 (17:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jun 2023 13:38:58 +0000 (15:38 +0200)
commit860634f1680c33e1a851d8d122f2e3fed008c452
treefd5cb39c3a8e10f614bc92d503798a2e185e8336
parent56687d263345a0a0474dc9c8613befd3298afddc
igb: fix nvm.ops.read() error handling

[ Upstream commit 48a821fd58837800750ec1b3962f0f799630a844 ]

Add error handling into igb_set_eeprom() function, in case
nvm.ops.read() fails just quit with error code asap.

Fixes: 9d5c824399de ("igb: PCI-Express 82575 Gigabit Ethernet driver")
Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/igb/igb_ethtool.c