HSI: omap_ssi: Fix refcount leak in ssi_probe
authorMiaoqian Lin <linmq006@gmail.com>
Mon, 4 Apr 2022 08:52:32 +0000 (08:52 +0000)
committerSebastian Reichel <sre@kernel.org>
Mon, 29 Aug 2022 16:08:48 +0000 (18:08 +0200)
commit9a2ea132df860177b33c9fd421b26c4e9a0a9396
tree8bc498356ff3339458d1216c1792aa22b1536b42
parent77e0ccd6248272fd60ce9cce101b6e27e8d50d47
HSI: omap_ssi: Fix refcount leak in ssi_probe

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: b209e047bc74 ("HSI: Introduce OMAP SSI driver")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/hsi/controllers/omap_ssi_core.c