Skip to content

Commit 505b5b1

Browse files
Yuuoniyandersson
authored andcommitted
remoteproc: qcom: Fix missing of_node_put in adsp_alloc_memory_region
The device_node pointer is returned by of_parse_phandle() with refcount incremented. We should use of_node_put() on it when done. Fixes: dc160e4 ("remoteproc: qcom: Introduce Non-PAS ADSP PIL driver") Signed-off-by: Miaoqian Lin <linmq006@gmail.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20220308031219.4718-1-linmq006@gmail.com
1 parent b65700d commit 505b5b1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/remoteproc/qcom_q6v5_adsp.c

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

410410
ret = of_address_to_resource(node, 0, &r);
411+
of_node_put(node);
411412
if (ret)
412413
return ret;
413414

0 commit comments

Comments
 (0)