]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe: Protect against unset LRC when pausing submissions
authorTomasz Lis <tomasz.lis@intel.com>
Mon, 24 Nov 2025 22:28:53 +0000 (23:28 +0100)
committerMatthew Brost <matthew.brost@intel.com>
Tue, 25 Nov 2025 18:29:13 +0000 (10:29 -0800)
commit07cf4b864f523f01d2bb522a05813df30b076ba8
treef00f1a68377cf432e2559c4217aecd009197fe46
parent00937fe1921ab346b6f6a4beaa5c38e14733caa3
drm/xe: Protect against unset LRC when pausing submissions

While pausing submissions, it is possible to encouner an exec queue
which is during creation, and therefore doesn't have a valid xe_lrc
struct reference.

Protect agains such situation, by checking for NULL before access.

Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Fixes: c25c1010df88 ("drm/xe/vf: Replay GuC submission state on pause / unpause")
Signed-off-by: Tomasz Lis <tomasz.lis@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20251124222853.1900800-1-tomasz.lis@intel.com
drivers/gpu/drm/xe/xe_guc_submit.c