You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
net: ethernet: microchip: lan743x: Fix driver crash when lan743x_pm_resume fails
commitd6423d2ec3upstream. The driver needs to clean up and return when the initialization fails on resume. Fixes:23f0703c12("lan743x: Add main source files for new lan743x driver") Signed-off-by: Yuiko Oshino <yuiko.oshino@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e81bed557f
commit
bfa6fbdb4e
@@ -3066,6 +3066,8 @@ static int lan743x_pm_resume(struct device *dev)
|
||||
if (ret) {
|
||||
netif_err(adapter, probe, adapter->netdev,
|
||||
"lan743x_hardware_init returned %d\n", ret);
|
||||
lan743x_pci_cleanup(adapter);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* open netdev when netdev is at running state while resume.
|
||||
|
||||
Reference in New Issue
Block a user