net: mvpp2: Fix clk error path in mvpp2_probe
authorMaxime Chevallier <maxime.chevallier@bootlin.com>
Wed, 25 Apr 2018 18:21:16 +0000 (20:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 15:22:55 +0000 (11:22 -0400)
commit45f972adb7f4db2d7f02af728ccd104113336074
treeddd93bd18a9766699a045868b25fbe6c05c3989d
parentc55ca688ed99a9cb79367aee2ed2ff6cb80fc039
net: mvpp2: Fix clk error path in mvpp2_probe

When clk_prepare_enable fails for the axi_clk, the mg_clk isn't properly
cleaned up. Add another jump label to handle that case, and make sure we
jump to it in the later error cases.

Fixes: 4792ea04bcd0 ("net: mvpp2: Fix clock resource by adding an optional bus clock")
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Acked-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c