diff options
author | Shuai Xue <xueshuai@linux.alibaba.com> | 2025-04-04 20:02:11 +0800 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2025-05-14 14:40:39 +0100 |
commit | aa6f4f945b10eac57aed46154ae7d6fada7fccc7 (patch) | |
tree | 0213dd702e201f3595f86dc39e5ecb22a20688c3 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 817bced19d1dbdd0b473580d026dc0983e30e17b (diff) |
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: stable@vger.kernel.org
Signed-off-by: Shuai Xue <xueshuai@linux.alibaba.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Fenghua Yu <fenghuay@nvidia.com>
Link: https://lore.kernel.org/r/20250404120217.48772-4-xueshuai@linux.alibaba.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions