remoteproc: qcom_wcnss: Add missing of_node_put() in wcnss_alloc_memory_region
authorMiaoqian Lin <linmq006@gmail.com>
Tue, 8 Mar 2022 06:31:02 +0000 (06:31 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:47 +0000 (14:23 +0200)
commit9c28309d6a5e5c46d7af89f86fa264478ce0676a
tree85cd5361bc8b0b36fde64e6ef2b8a2655ba7eba4
parent9a809b902e1df9939f72a24061d0c514f8ae8d1d
remoteproc: qcom_wcnss: Add missing of_node_put() in wcnss_alloc_memory_region

[ Upstream commit 8f90161a66bc3d6b9fe8dde4d9028d20eae1b62a ]

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

Fixes: aed361adca9f ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/remoteproc/qcom_wcnss.c