net: phy: xgene: disable clk on error paths
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 15 Dec 2017 21:52:39 +0000 (00:52 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Mar 2018 09:24:24 +0000 (10:24 +0100)
commit0b9aeeb6070e5f618089e2f6cb7a1c1e352177ab
tree06e2db065f95761571bba5a308bd4974abe71f3a
parentac4dc9f1af33538ba475484b1dcb95bbbcef41a6
net: phy: xgene: disable clk on error paths

[ Upstream commit ab14436065c8066c265540312742390d6d07ddd2 ]

There are several error paths in xgene_mdio_probe(),
where clk is left undisabled. The patch fixes them.

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 <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/phy/mdio-xgene.c