]> Git Repo - linux.git/commit
drm/i915/gt: Fix memory leaks in per-gt sysfs
authorAshutosh Dixit <[email protected]>
Wed, 25 May 2022 13:19:20 +0000 (06:19 -0700)
committerJani Nikula <[email protected]>
Mon, 13 Jun 2022 10:04:31 +0000 (13:04 +0300)
commit6e3f3c239ee547c5b55a85f467c92a6ba7eee83a
tree9150353194f180a1b0c6225a5985d832aadad579
parentc9b576d0c7bf55aeae1a736da7974fa202c4394d
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 <[email protected]>
Reviewed-by: Andi Shyti <[email protected]>
Acked-by: Andrzej Hajda <[email protected]>
Signed-off-by: Tvrtko Ursulin <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/a6f6686517c85fba61a0c45097f5bb4fe7e257fb.1653484574.git.ashutosh.dixit@intel.com
(cherry picked from commit 69d6bf5c3754ffc491896632438417d1cedc2c68)
Signed-off-by: Jani Nikula <[email protected]>
drivers/gpu/drm/i915/gt/intel_gt.c
drivers/gpu/drm/i915/gt/intel_gt_sysfs.c
drivers/gpu/drm/i915/gt/intel_gt_sysfs.h
drivers/gpu/drm/i915/gt/intel_gt_types.h
drivers/gpu/drm/i915/i915_sysfs.c
This page took 0.065994 seconds and 4 git commands to generate.