]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8bfaf018c2d20367e47c71ec21aa61ea006971b1
treeddd93bd18a9766699a045868b25fbe6c05c3989d
parent03bf8f43295b7a881c3b64e0f36e0ca8dbbc333e
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: 653f4fc40d50 ("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