diff options
| author | Shuicheng Lin <shuicheng.lin@intel.com> | 2025-11-14 20:56:39 +0000 |
|---|---|---|
| committer | Thomas Hellström <thomas.hellstrom@linux.intel.com> | 2025-12-15 14:13:41 +0100 |
| commit | b32045d73bb4333a2cebc5d3c005807adb03ab58 (patch) | |
| tree | eed8f11d7f1c6b7620ba959ad6d5a8f8a1b9f6cc /include/linux/platform_data/git:/git.armlinux.org.uk | |
| parent | 8f0b4cce4481fb22653697cced8d0d04027cb1e8 (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>
(cherry picked from commit 251be5fb4982ebb0f5a81b62d975bd770f3ad5c2)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Diffstat (limited to 'include/linux/platform_data/git:/git.armlinux.org.uk')
0 files changed, 0 insertions, 0 deletions
