diff options
| author | Shuai Xue <[email protected]> | 2025-04-04 12:02:12 +0000 |
|---|---|---|
| committer | Vinod Koul <[email protected]> | 2025-05-14 13:40:39 +0000 |
| commit | 61259fb96e023f7299c442c48b13e72c441fc0f2 (patch) | |
| tree | faf183aa7042ccafb319adcb241d2a639b2a8c2b /scripts/gcc-plugins/sancov_plugin.c | |
| parent | dmaengine: idxd: fix memory leak in error handling path of idxd_setup_groups (diff) | |
| download | kernel-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 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions
