diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2022-03-08 06:45:21 +0000 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2022-03-11 14:03:41 -0600 |
commit | 07a5dcc4bed9d7cae54adf5aa10ff9f037a3204b (patch) | |
tree | 0a484f54988cdb404416b6049fb38d0c37060b90 /scripts/gdb/linux/tasks.py | |
parent | 8f90161a66bc3d6b9fe8dde4d9028d20eae1b62a (diff) |
remoteproc: qcom_q6v5_mss: Fix some leaks in q6v5_alloc_memory_region
The device_node pointer is returned by of_parse_phandle() or
of_get_child_by_name() with refcount incremented.
We should use of_node_put() on it when done.
This function only call of_node_put(node) when of_address_to_resource
succeeds, missing error cases.
Fixes: 278d744c46fd ("remoteproc: qcom: Fix potential device node leaks")
Fixes: 051fb70fd4ea ("remoteproc: qcom: Driver for the self-authenticating Hexagon v5")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20220308064522.13804-1-linmq006@gmail.com
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions