]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd2395677ae7a7556e8df0f448927a1e9d36e9273
tree8bc498356ff3339458d1216c1792aa22b1536b42
parent5186d7c493b5093b7d5019794b576d8b4d36d661
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: f6a17db405d3 ("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