aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorShuai Xue <[email protected]>2025-04-04 12:02:10 +0000
committerVinod Koul <[email protected]>2025-05-14 13:40:39 +0000
commit817bced19d1dbdd0b473580d026dc0983e30e17b (patch)
treeefd567e1a96693d665d41b2a49c65a999cb78304 /scripts/gcc-plugins/sancov_plugin.c
parentdmaengine: idxd: fix memory leak in error handling path of idxd_setup_wqs (diff)
downloadkernel-817bced19d1dbdd0b473580d026dc0983e30e17b.tar.gz
kernel-817bced19d1dbdd0b473580d026dc0983e30e17b.zip
dmaengine: idxd: fix memory leak in error handling path of idxd_setup_engines
Memory allocated for engines is not freed if an error occurs during idxd_setup_engines(). To fix it, free the allocated memory in the reverse order of allocation before exiting the function in case of an error. Fixes: 75b911309060 ("dmaengine: idxd: fix engine conf_dev lifetime") Cc: [email protected] Signed-off-by: Shuai Xue <[email protected]> Reviewed-by: Dave Jiang <[email protected]> Reviewed-by: Fenghua Yu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions