You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
HSI: omap_ssi: Fix refcount leak in ssi_probe
[ Upstream commit9a2ea132df] When returning or breaking early from a for_each_available_child_of_node() loop, we need to explicitly call of_node_put() on the child node to possibly release the node. Fixes:b209e047bc("HSI: Introduce OMAP SSI driver") Signed-off-by: Miaoqian Lin <linmq006@gmail.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
70f0a0a27d
commit
962f22e7f7
@@ -524,6 +524,7 @@ static int ssi_probe(struct platform_device *pd)
|
|||||||
if (!childpdev) {
|
if (!childpdev) {
|
||||||
err = -ENODEV;
|
err = -ENODEV;
|
||||||
dev_err(&pd->dev, "failed to create ssi controller port\n");
|
dev_err(&pd->dev, "failed to create ssi controller port\n");
|
||||||
|
of_node_put(child);
|
||||||
goto out3;
|
goto out3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user