net: phy: xgene: disable clk on error paths
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 15 Dec 2017 21:52:39 +0000 (00:52 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Dec 2017 20:09:42 +0000 (15:09 -0500)
commitab14436065c8066c265540312742390d6d07ddd2
tree8c4804240dd25a9bcd3e809af7094dfdbeb28f59
parent6623c0fba10ef45b64ca213ad5dec926f37fa9a0
net: phy: xgene: disable clk on error paths

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>
drivers/net/phy/mdio-xgene.c