]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: ti: dra7-atl: Fix leak of of_nodes
authorDavid Lechner <dlechner@baylibre.com>
Mon, 26 Aug 2024 15:35:29 +0000 (10:35 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:01 +0000 (15:11 +0200)
commite69b5883ae03f510eb1f9c1a690eed0bc4b7704d
treea7f0b4405f3b97001dfe038454e4b6e8715e84fc
parent0429a4e972082e3a2351da414b1c017daaf8aed2
clk: ti: dra7-atl: Fix leak of of_nodes

[ Upstream commit 9d6e9f10e2e031fb7bfb3030a7d1afc561a28fea ]

This fix leaking the of_node references in of_dra7_atl_clk_probe().

The docs for of_parse_phandle_with_args() say that the caller must call
of_node_put() on the returned node. This adds the missing of_node_put()
to fix the leak.

Fixes: 9ac33b0ce81f ("CLK: TI: Driver for DRA7 ATL (Audio Tracking Logic)")
Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://lore.kernel.org/r/20240826-clk-fix-leak-v1-1-f55418a13aa6@baylibre.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/ti/clk-dra7-atl.c