aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorShuai Xue <[email protected]>2025-04-04 12:02:12 +0000
committerVinod Koul <[email protected]>2025-05-14 13:40:39 +0000
commit61259fb96e023f7299c442c48b13e72c441fc0f2 (patch)
treefaf183aa7042ccafb319adcb241d2a639b2a8c2b /rust/helpers/helpers.c
parentdmaengine: idxd: fix memory leak in error handling path of idxd_setup_groups (diff)
downloadkernel-61259fb96e023f7299c442c48b13e72c441fc0f2.tar.gz
kernel-61259fb96e023f7299c442c48b13e72c441fc0f2.zip
dmaengine: idxd: Add missing cleanup for early error out in idxd_setup_internals
The idxd_setup_internals() is missing some cleanup when things fail in the middle. Add the appropriate cleanup routines: - cleanup groups - cleanup enginces - cleanup wqs to make sure it exits gracefully. Fixes: defe49f96012 ("dmaengine: idxd: fix group conf_dev lifetime") Cc: [email protected] Suggested-by: Fenghua Yu <[email protected]> Signed-off-by: Shuai Xue <[email protected]> Reviewed-by: Fenghua Yu <[email protected]> Reviewed-by: Dave Jiang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions