diff options
| author | Shuicheng Lin <shuicheng.lin@intel.com> | 2025-11-14 20:56:39 +0000 |
|---|---|---|
| committer | Matt Roper <matthew.d.roper@intel.com> | 2025-12-01 08:48:30 -0800 |
| commit | 251be5fb4982ebb0f5a81b62d975bd770f3ad5c2 (patch) | |
| tree | 01458e32f7aaf5cef0d70930c8fa070d1b42674c /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | 9d94c1cf6ef938abd4b849b66f8eab11e3c537ef (diff) | |
drm/xe: Fix freq kobject leak on sysfs_create_files failure
Ensure gt->freq is released when sysfs_create_files() fails
in xe_gt_freq_init(). Without this, the kobject would leak.
Add kobject_put() before returning the error.
Fixes: fdc81c43f0c1 ("drm/xe: use devm_add_action_or_reset() helper")
Signed-off-by: Shuicheng Lin <shuicheng.lin@intel.com>
Reviewed-by: Alex Zuo <alex.zuo@intel.com>
Reviewed-by: Xin Wang <x.wang@intel.com>
Link: https://patch.msgid.link/20251114205638.2184529-2-shuicheng.lin@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
