Skip to content

Commit 38e7d9c

Browse files
Yuan Canandersson
authored andcommitted
remoteproc: qcom_q6v5_pas: Fix missing of_node_put() in adsp_alloc_memory_region()
The pointer node is returned by of_parse_phandle() with refcount incremented. We should use of_node_put() on it when done. Fixes: b9e718e ("remoteproc: Introduce Qualcomm ADSP PIL") Signed-off-by: Yuan Can <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 34d01df commit 38e7d9c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/remoteproc/qcom_q6v5_pas.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ static int adsp_alloc_memory_region(struct qcom_adsp *adsp)
449449
}
450450

451451
ret = of_address_to_resource(node, 0, &r);
452+
of_node_put(node);
452453
if (ret)
453454
return ret;
454455

0 commit comments

Comments
 (0)