projects
/
wrapfs-4.9.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef09f17
)
remoteproc: qcom_wcnss: Add missing of_node_put() in wcnss_alloc_memory_region
author
Miaoqian Lin
<linmq006@gmail.com>
Tue, 8 Mar 2022 06:31:02 +0000
(06:31 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 07:06:36 +0000
(09:06 +0200)
[ 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
patch
|
blob
|
history
diff --git
a/drivers/remoteproc/qcom_wcnss.c
b/drivers/remoteproc/qcom_wcnss.c
index 323b629474a6b5c8fe3c544fef4d681efa607cef..9f76ad9e959dc1e009769a6039f732363b061c16 100644
(file)
--- a/
drivers/remoteproc/qcom_wcnss.c
+++ b/
drivers/remoteproc/qcom_wcnss.c
@@
-472,6
+472,7
@@
static int wcnss_alloc_memory_region(struct qcom_wcnss *wcnss)
}
ret = of_address_to_resource(node, 0, &r);
+ of_node_put(node);
if (ret)
return ret;