diff options
| author | Linus Walleij <linusw@kernel.org> | 2026-09-27 11:03:27 +0200 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2026-10-05 17:37:45 +0200 |
| commit | 9a3762b470421658214baeb6cce3eed7344bb435 (patch) | |
| tree | 95889927eb7a723cf3d93c9d5926732d7253646e /tools/lib/python | |
| parent | 750dfcdb7a406bdd52d604099a631bbe96ddda91 (diff) | |
dmaengine: ste_dma40: Put the LCPA SRAM node
of_parse_phandle() takes a reference to the LCPA SRAM node, but d40_probe()
does not release it after translating the node into a resource. This leaks
the node reference for the lifetime of the system.
Put the node immediately after of_address_to_resource() so both the success
and error paths release the reference.
Fixes: 5a1a3b9c19dd ("dmaengine: ste_dma40: Get LCPA SRAM from SRAM node")
Assisted-by: LLM
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/20260927-dma40-fixes-v7-14-89f595e8851d@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
