]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Move ggtt_fini to devm managed
authorMatthew Brost <matthew.brost@intel.com>
Tue, 20 Aug 2024 17:29:53 +0000 (10:29 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Fri, 23 Aug 2024 16:54:10 +0000 (09:54 -0700)
commit5b993d00d7f0c970a5e5d34c1031069fb13b6986
treeb2571ee6e28908cae27a9fe2069afe665dd7ab46
parent25ebe10e3f4c897a2d348a9d4b674ee9ea28225c
drm/xe: Move ggtt_fini to devm managed

ggtt->scratch is destroyed via devm, ggtt_fini sets ggtt->scratch to
NULL, ggtt->scratch in GGTT clears, so ensure ggtt->scratch is set NULL
before the BO is destroyed.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240820172958.1095143-2-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_ggtt.c