aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorShuai Xue <[email protected]>2025-04-04 12:02:15 +0000
committerVinod Koul <[email protected]>2025-05-14 13:40:40 +0000
commit90022b3a6981ec234902be5dbf0f983a12c759fc (patch)
tree38dd1cd0e13d6f6930ab9a90f5b09305555d7cbc /scripts/gcc-plugins/sancov_plugin.c
parentdmaengine: idxd: fix memory leak in error handling path of idxd_alloc (diff)
downloadkernel-90022b3a6981ec234902be5dbf0f983a12c759fc.tar.gz
kernel-90022b3a6981ec234902be5dbf0f983a12c759fc.zip
dmaengine: idxd: fix memory leak in error handling path of idxd_pci_probe
Memory allocated for idxd is not freed if an error occurs during idxd_pci_probe(). To fix it, free the allocated memory in the reverse order of allocation before exiting the function in case of an error. Fixes: bfe1d56091c1 ("dmaengine: idxd: Init and probe for Intel data accelerators") 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