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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Mar 2019 19:09:49 +0000 (20:09 +0100)
commit3a532134236151b46af88e63719263c424697f83
treec9981af9043adf233cac82f63bdad5938095b6e4
parenta139d6a318de30168ac7b51bb44108ca4748fe25
net: mv643xx_eth: disable clk on error path in mv643xx_eth_shared_probe()

[ Upstream commit e928b5d6b75e239feb9c6d5488974b6646a0ebc8 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/mv643xx_eth.c