]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Nov 2021 18:46:14 +0000 (19:46 +0100)
commitd5216de6f9c57b4e06b251fc7d1203ca051f3950
tree0c9a6d3fe47962206797cffc9a81a864a95bd26b
parent94325239660f040f60e475dc9bf1515620a4f8b4
net: ethernet: microchip: lan743x: Fix driver crash when lan743x_pm_resume fails

commit d6423d2ec39cce2bfca418c81ef51792891576bc upstream.

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

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