]> git.baikalelectronics.ru Git - kernel.git/commit
rpmsg: qcom_smd: Fix refcount leak in qcom_smd_parse_edge
authorMiaoqian Lin <linmq006@gmail.com>
Wed, 11 May 2022 12:07:37 +0000 (16:07 +0400)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 17 Jul 2022 03:15:40 +0000 (22:15 -0500)
commit2da6bfb2b12cd7c53f7b7bb309e46c53fda97477
tree3cf4b922a02c636712ab8724d71353ae43a5c15f
parent06a7c2764f2df29d3339a30d00b70ab4dfe2cabc
rpmsg: qcom_smd: Fix refcount leak in qcom_smd_parse_edge

of_parse_phandle() returns a node pointer with refcount
incremented, we should use of_node_put() on it when done.

Fixes: 6d771081793f ("rpmsg: Introduce Qualcomm SMD backend")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220511120737.57374-1-linmq006@gmail.com
drivers/rpmsg/qcom_smd.c