drm/xe: Fix NULL check in xe_ggtt_init()
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 6 Mar 2024 05:19:59 +0000 (21:19 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 7 Mar 2024 18:37:55 +0000 (10:37 -0800)
commit2a2e1107ef037bbeb29d7d78ae31825051fb174f
tree34d4e3579b1960f7b8a304d05181e17e89e660af
parent51e9ddc668c7d8b9ef9c0037fe4aa09387dbee2a
drm/xe: Fix NULL check in xe_ggtt_init()

The null check for GT is after calling gt_to_xe, fix it.

Fixes: 3121fed0c51b ("drm/xe: Cleanup some layering in GGTT")
Cc: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240306052002.311196-2-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_ggtt.c