Skip to content

Commit 8f90161

Browse files
Yuuoniyandersson
authored andcommitted
remoteproc: qcom_wcnss: Add missing of_node_put() in wcnss_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: aed361a ("remoteproc: qcom: Introduce WCNSS peripheral image loader") Signed-off-by: Miaoqian Lin <linmq006@gmail.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> Link: https://lore.kernel.org/r/20220308063102.10049-1-linmq006@gmail.com
1 parent 505b5b1 commit 8f90161

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/remoteproc/qcom_wcnss.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,7 @@ static int wcnss_alloc_memory_region(struct qcom_wcnss *wcnss)
500500
}
501501

502502
ret = of_address_to_resource(node, 0, &r);
503+
of_node_put(node);
503504
if (ret)
504505
return ret;
505506

0 commit comments

Comments
 (0)