]> Gentwo Git Trees - linux/.git/commit
drm/xe/vm: Clear the scratch_pt pointer on error
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Thu, 21 Aug 2025 14:30:45 +0000 (16:30 +0200)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Mon, 25 Aug 2025 08:24:13 +0000 (10:24 +0200)
commit358ee50ab565f3c8ea32480e9d03127a81ba32f8
tree36b1e648aec752988373710aabf64d305e54f6cf
parentb5dd1505a31c5cbe62ec50a70e9c9a7bd2a8f703
drm/xe/vm: Clear the scratch_pt pointer on error

Avoid triggering a dereference of an error pointer on cleanup in
xe_vm_free_scratch() by clearing any scratch_pt error pointer.

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Fixes: 06951c2ee72d ("drm/xe: Use NULL PTEs as scratch PTEs")
Cc: Brian Welty <brian.welty@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: <stable@vger.kernel.org> # v6.8+
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250821143045.106005-4-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/xe/xe_vm.c