diff options
author | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2025-06-27 20:41:43 +0200 |
---|---|---|
committer | Michal Wajdeczko <michal.wajdeczko@intel.com> | 2025-07-02 13:31:30 +0200 |
commit | 67979060740f7f978c8cb580ccea6c91154150f9 (patch) | |
tree | b3abd600559862aefc8445dfd0bfa8d28d81d185 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | a34ba68d0938687e56f442102b5f9e149af7a415 (diff) |
drm/xe/hw_engine_group: Fix potential leak
If we fail to allocate a workqueue we will leak kzalloc'ed group
object since it was designed to be kfree'ed in the drmm cleanup
action, but we didn't have a chance to register this action yet.
To avoid this leak allocate a group object using drmm_kzalloc()
and start using predefined drmm action to release the workqueue.
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Francois Dugast <francois.dugast@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250627184143.1480-1-michal.wajdeczko@intel.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions