]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
soc: qcom: smem_state: fix missing of_node_put in error path
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 22 Aug 2024 16:48:51 +0000 (18:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Feb 2025 09:05:33 +0000 (10:05 +0100)
commitb64b7730879a26a5ca5f5acc4d3af71f4e9175e8
tree94dca40968c195f06db78a6ef7a2c2317ff33d3e
parent2153c78328aabf2ff6d889c32fbaaca448a2a9b6
soc: qcom: smem_state: fix missing of_node_put in error path

commit 70096b4990848229d0784c5e51dc3c7c072f1111 upstream.

If of_parse_phandle_with_args() succeeds, the OF node reference should
be dropped, regardless of number of phandle arguments.

Cc: stable@vger.kernel.org
Fixes: 9460ae2ff308 ("soc: qcom: Introduce common SMEM state machine code")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240822164853.231087-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/soc/qcom/smem_state.c