diff options
author | Ashutosh Dixit <ashutosh.dixit@intel.com> | 2022-05-25 16:19:20 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2022-06-13 13:04:31 +0300 |
commit | 6e3f3c239ee547c5b55a85f467c92a6ba7eee83a (patch) | |
tree | 9150353194f180a1b0c6225a5985d832aadad579 /scripts/gdb/linux/tasks.py | |
parent | c9b576d0c7bf55aeae1a736da7974fa202c4394d (diff) | |
download | linux-6e3f3c239ee547c5b55a85f467c92a6ba7eee83a.tar.xz |
drm/i915/gt: Fix memory leaks in per-gt sysfs
All kmalloc'd kobjects need a kobject_put() to free memory. For example in
previous code, kobj_gt_release() never gets called. The requirement of
kobject_put() now results in a slightly different code organization.
v2: s/gtn/gt/ (Andi)
Fixes: b770bcfae9ad ("drm/i915/gt: create per-tile sysfs interface")
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Acked-by: Andrzej Hajda <andrzej.hajda@intel.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/a6f6686517c85fba61a0c45097f5bb4fe7e257fb.1653484574.git.ashutosh.dixit@intel.com
(cherry picked from commit 69d6bf5c3754ffc491896632438417d1cedc2c68)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions