]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
e1000e: Fix error handling in e1000_set_d0_lplu_state_82571
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Sun, 28 Feb 2021 09:44:23 +0000 (17:44 +0800)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 8 Apr 2021 20:42:32 +0000 (15:42 -0500)
commitc940467da9a1a1b874c4f85d70bc966f2d70b33c
treeb1ec1738708f92ef0d934df2230abda710dec6b2
parent67bc78f454b8134ffbc3b78ff060fed817794ac1
e1000e: Fix error handling in e1000_set_d0_lplu_state_82571

BugLink: https://bugs.launchpad.net/bugs/1922601
[ Upstream commit b52912b8293f2c496f42583e65599aee606a0c18 ]

There is one e1e_wphy() call in e1000_set_d0_lplu_state_82571
that we have caught its return value but lack further handling.
Check and terminate the execution flow just like other e1e_wphy()
in this function.

Fixes: bc7f75fa9788 ("[E1000E]: New pci-express e1000 driver (currently for ICH9 devices only)")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Acked-by: Sasha Neftin <sasha.neftin@intel.com>
Tested-by: Dvora Fuxbrumer <dvorax.fuxbrumer@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/ethernet/intel/e1000e/82571.c