]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: dwmac-rk: fix error handling in rk_gmac_powerup()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sat, 26 Jan 2019 19:48:57 +0000 (22:48 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2019 07:03:38 +0000 (23:03 -0800)
commite1b30f0e09980cade89a9fbd7214b7ae16da53d9
tree37cc3609ae7bb45dc80cbf4f6af770deab3c325f
parentc8d64af23d6790bfd59f888e5c16ac5d17ed53ca
net: stmmac: dwmac-rk: fix error handling in rk_gmac_powerup()

If phy_power_on() fails in rk_gmac_powerup(), clocks are left enabled.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c