]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/oa: Fix static checker warning about null gt
authorAshutosh Dixit <ashutosh.dixit@intel.com>
Tue, 15 Jul 2025 18:14:22 +0000 (11:14 -0700)
committerAshutosh Dixit <ashutosh.dixit@intel.com>
Wed, 16 Jul 2025 05:36:16 +0000 (22:36 -0700)
commit308dc9b27874d0e8a0258869b9e681b0fdd2e579
tree113092d2ffb53333934c5056a47bc5a4cbf2f914
parented5461daa150b037e36b8202381da1ef85d6b16b
drm/xe/oa: Fix static checker warning about null gt

There is a static checker warning that gt returned by xe_device_get_gt can
be NULL and that is being dereferenced. Use xe_root_mmio_gt instead, which
is equivalent and cannot return a NULL gt 0.

Fixes: 10d42ef34bce ("drm/xe/oa: Assign hwe for OAM_SAG")
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Link: https://lore.kernel.org/r/20250715181422.2807624-1-ashutosh.dixit@intel.com
drivers/gpu/drm/xe/xe_oa.c