aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorShuai Xue <[email protected]>2025-04-04 12:02:09 +0000
committerVinod Koul <[email protected]>2025-05-14 13:40:39 +0000
commit3fd2f4bc010cdfbc07dd21018dc65bd9370eb7a4 (patch)
tree65b2da9622dd6c45ecd219e257f191a06b3b1168 /scripts/gcc-plugins/randomize_layout_plugin.c
parentdmaengine: ptdma: Move variable condition check to the first place and remove... (diff)
downloadkernel-3fd2f4bc010cdfbc07dd21018dc65bd9370eb7a4.tar.gz
kernel-3fd2f4bc010cdfbc07dd21018dc65bd9370eb7a4.zip
dmaengine: idxd: fix memory leak in error handling path of idxd_setup_wqs
Memory allocated for wqs is not freed if an error occurs during idxd_setup_wqs(). To fix it, free the allocated memory in the reverse order of allocation before exiting the function in case of an error. Fixes: 7c5dd23e57c1 ("dmaengine: idxd: fix wq conf_dev 'struct device' lifetime") Fixes: 700af3a0a26c ("dmaengine: idxd: add 'struct idxd_dev' as wrapper for conf_dev") Fixes: de5819b99489 ("dmaengine: idxd: track enabled workqueues in bitmap") Fixes: b0325aefd398 ("dmaengine: idxd: add WQ operation cap restriction support") 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