Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 589bf32f authored by Tobias Jordan's avatar Tobias Jordan Committed by David S. Miller
Browse files

net: mvmdio: disable/unprepare clocks in EPROBE_DEFER case



add appropriate calls to clk_disable_unprepare() by jumping to out_mdio
in case orion_mdio_probe() returns -EPROBE_DEFER.

Found by Linux Driver Verification project (linuxtesting.org).

Fixes: 3d604da1 ("net: mvmdio: get and enable optional clock")
Signed-off-by: default avatarTobias Jordan <Tobias.Jordan@elektrobit.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 30f1e595
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -344,7 +344,8 @@ static int orion_mdio_probe(struct platform_device *pdev)
			dev->regs + MVMDIO_ERR_INT_MASK);

	} else if (dev->err_interrupt == -EPROBE_DEFER) {
		return -EPROBE_DEFER;
		ret = -EPROBE_DEFER;
		goto out_mdio;
	}

	if (pdev->dev.of_node)