]> git.hungrycats.org Git - linux/commit
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:23:21 +0000 (10:23 +0100)
commit396927052bad2f8228c98d3eab34c097823fd089
tree97cb6aba7acb66f0bde15dd08a810da55177a23d
parentfd7cbb5ad8e8b222eff3401089e3244a7a8cb32e
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@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/phy/mdio-xgene.c