]> git.baikalelectronics.ru Git - 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)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 11 Mar 2021 17:37:48 +0000 (09:37 -0800)
commit87d11d5d7d0e6ad390d16b6f500e918d2109c570
treea216ec6c857d7eb8beea67a05fd63e50b61c5c7f
parent3aee83a5027a826b04441e82b77e22bc186d1438
e1000e: Fix error handling in e1000_set_d0_lplu_state_82571

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: 3f32e81cc0ea ("[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>
drivers/net/ethernet/intel/e1000e/82571.c