mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
clk: renesas: rcar-usb2-clock-sel: Fix kernel NULL pointer dereference
[ Upstream commit1669a941f7] The probe was manually passing NULL instead of dev to devm_clk_hw_register. This caused a Unable to handle kernel NULL pointer dereference error. Fix this by passing 'dev'. Signed-off-by: Adam Ford <aford173@gmail.com> Fixes:a20a40a8bb("clk: renesas: rcar-usb2-clock-sel: Fix error handling in .probe()") Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Stephen Boyd <sboyd@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
bdc5049c36
commit
9a6a5602c2
|
|
@ -190,7 +190,7 @@ static int rcar_usb2_clock_sel_probe(struct platform_device *pdev)
|
||||||
init.num_parents = 0;
|
init.num_parents = 0;
|
||||||
priv->hw.init = &init;
|
priv->hw.init = &init;
|
||||||
|
|
||||||
ret = devm_clk_hw_register(NULL, &priv->hw);
|
ret = devm_clk_hw_register(dev, &priv->hw);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto pm_put;
|
goto pm_put;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user