Commit 22f7bb8b authored by Aleksandr Loktionov's avatar Aleksandr Loktionov Committed by sanglipeng
Browse files

igb: fix nvm.ops.read() error handling

stable inclusion
from stable-v5.10.185
commit 8c3446ab5902baef75e33761f2e3078751c75313
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8L5XP

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=8c3446ab5902baef75e33761f2e3078751c75313



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

[ Upstream commit 48a821fd ]

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

Fixes: 9d5c8243 ("igb: PCI-Express 82575 Gigabit Ethernet driver")
Signed-off-by: default avatarAleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent bc7ecf3f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment