diff options
author | 2024-12-21 16:57:12 +0900 | |
---|---|---|
committer | 2024-12-24 14:55:57 +0530 | |
commit | ccfa3131d4a0347988e73638edea5c8281b6d2c7 (patch) | |
tree | 9f214f00e0d45a21539b8d86f48bc765e945e803 /scripts/lib/kdoc/kdoc_files.py | |
parent | dmaengine: amd: qdma: Remove using the private get and set dma_ops APIs (diff) | |
download | linux-rng-ccfa3131d4a0347988e73638edea5c8281b6d2c7.tar.xz linux-rng-ccfa3131d4a0347988e73638edea5c8281b6d2c7.zip |
dmaengine: fsl-edma: implement the cleanup path of fsl_edma3_attach_pd()
Current implementation of fsl_edma3_attach_pd() does not provide a
cleanup path, resulting in a memory leak. For example,
dev_pm_domain_detach() is not called after dev_pm_domain_attach_by_id(),
and the device link created with the DL_FLAG_STATELESS is not released
explicitly.
Therefore, provide a cleanup function fsl_edma3_detach_pd() and call it
upon failure. Also add a devm_add_action_or_reset() call with this
function after a successful fsl_edma3_attach_pd().
Fixes: 72f5801a4e2b ("dmaengine: fsl-edma: integrate v3 support")
Signed-off-by: Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Link: https://lore.kernel.org/r/20241221075712.3297200-1-joe@pf.is.s.u-tokyo.ac.jp
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions