igb: fix nvm.ops.read() error handling
authorAleksandr Loktionov <aleksandr.loktionov@intel.com>
Tue, 25 Apr 2023 15:44:14 +0000 (17:44 +0200)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Mon, 12 Jun 2023 20:33:22 +0000 (13:33 -0700)
commit48a821fd58837800750ec1b3962f0f799630a844
tree64e79361d0445697b7f7101a892a0b396e89b5c3
parentc080fe262f9e73a00934b70c16b1479cf40cd2bd
igb: fix nvm.ops.read() error handling

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>
drivers/net/ethernet/intel/igb/igb_ethtool.c