diff options
| author | Shuai Xue <[email protected]> | 2025-04-04 12:02:11 +0000 |
|---|---|---|
| committer | Vinod Koul <[email protected]> | 2025-05-14 13:40:39 +0000 |
| commit | aa6f4f945b10eac57aed46154ae7d6fada7fccc7 (patch) | |
| tree | 0213dd702e201f3595f86dc39e5ecb22a20688c3 /scripts/gcc-plugins/sancov_plugin.c | |
| parent | dmaengine: idxd: fix memory leak in error handling path of idxd_setup_engines (diff) | |
| download | kernel-aa6f4f945b10eac57aed46154ae7d6fada7fccc7.tar.gz kernel-aa6f4f945b10eac57aed46154ae7d6fada7fccc7.zip | |
dmaengine: idxd: fix memory leak in error handling path of idxd_setup_groups
Memory allocated for groups is not freed if an error occurs during
idxd_setup_groups(). To fix it, free the allocated memory in the reverse
order of allocation before exiting the function in case of an error.
Fixes: defe49f96012 ("dmaengine: idxd: fix group 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
