aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorXin Xiong <[email protected]>2021-09-11 15:05:33 +0800
committerVinod Koul <[email protected]>2021-10-25 12:12:58 +0530
commit9bf9e0b44104d05b21761441227ae566c732ecb9 (patch)
treeac4976190f60876ef9b7080171922d748fd4182e /tools/perf/scripts/python/syscall-counts.py
parentfe14c67267886e3af3c377a7bee4e6f915778636 (diff)
dmaengine: mmp_pdma: fix reference count leaks in mmp_pdma_probe
The issue happens in an error handling path. If of_dma_controller_register() fails, the function simply prints error messages and returns error code, without decrementing the reference count of pdev->device incremented earlier by dma_async_device_register(), which may result in refcount leaks. Fix it by invoking dma_async_device_unregister() before returning the error code. Signed-off-by: Xin Xiong <[email protected]> Signed-off-by: Xiyu Yang <[email protected]> Signed-off-by: Xin Tan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions