Skip to content
Commit 07a5dcc4 authored by Miaoqian Lin's avatar Miaoqian Lin Committed by Bjorn Andersson
Browse files

remoteproc: qcom_q6v5_mss: Fix some leaks in q6v5_alloc_memory_region



The device_node pointer is returned by of_parse_phandle() or
of_get_child_by_name() with refcount incremented.
We should use of_node_put() on it when done.

This function only call of_node_put(node) when of_address_to_resource
succeeds, missing error cases.

Fixes: 278d744c ("remoteproc: qcom: Fix potential device node leaks")
Fixes: 051fb70f ("remoteproc: qcom: Driver for the self-authenticating Hexagon v5")
Signed-off-by: default avatarMiaoqian Lin <linmq006@gmail.com>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220308064522.13804-1-linmq006@gmail.com
parent 8f90161a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment