net: ethernet: microchip: lan743x: Fix driver crash when lan743x_pm_resume fails
authorYuiko Oshino <yuiko.oshino@microchip.com>
Fri, 22 Oct 2021 15:13:53 +0000 (11:13 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 24 Oct 2021 12:37:48 +0000 (13:37 +0100)
commitd6423d2ec39cce2bfca418c81ef51792891576bc
treebe861ffcdb12cab22e357fc4354c522192a731d9
parent1f83b835a3eaa5ae4bd825fb07182698bfc243ba
net: ethernet: microchip: lan743x: Fix driver crash when lan743x_pm_resume fails

The driver needs to clean up and return when the initialization fails on resume.

Fixes: 23f0703c125b ("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>
drivers/net/ethernet/microchip/lan743x_main.c