]> git.baikalelectronics.ru Git - kernel.git/commit
net: mv643xx_eth: disable clk on error path in mv643xx_eth_shared_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 15 Feb 2019 21:20:54 +0000 (00:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Feb 2019 23:44:26 +0000 (15:44 -0800)
commitbb1033679c92f4bc98cf28d3b0b533a98e1a0596
tree0bffd3906507b4886430273ccf540ac352c2d996
parent1ab7ef7b13760c9b3ba825950772431a0bce4792
net: mv643xx_eth: disable clk on error path in mv643xx_eth_shared_probe()

If mv643xx_eth_shared_of_probe() fails, mv643xx_eth_shared_probe()
leaves clk 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/marvell/mv643xx_eth.c