aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorShuai Xue <[email protected]>2025-04-04 12:02:14 +0000
committerVinod Koul <[email protected]>2025-05-14 13:40:39 +0000
commit46a5cca76c76c86063000a12936f8e7875295838 (patch)
tree3e3da4e80873f4429aaca1de0af13f520825abaf /scripts/gcc-plugins/randomize_layout_plugin.c
parentdmaengine: idxd: Add missing cleanups in cleanup internals (diff)
downloadkernel-46a5cca76c76c86063000a12936f8e7875295838.tar.gz
kernel-46a5cca76c76c86063000a12936f8e7875295838.zip
dmaengine: idxd: fix memory leak in error handling path of idxd_alloc
Memory allocated for idxd is not freed if an error occurs during idxd_alloc(). To fix it, free the allocated memory in the reverse order of allocation before exiting the function in case of an error. Fixes: a8563a33a5e2 ("dmanegine: idxd: reformat opcap output to match bitmap_parse() input") 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/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions