]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Do not reference loop variable directly
authorMatthew Brost <matthew.brost@intel.com>
Wed, 3 Dec 2025 01:18:09 +0000 (17:18 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 3 Dec 2025 21:22:57 +0000 (13:22 -0800)
commit76ce2313709f13a6adbcaa1a43a8539c8f509f6a
treec20a10de689b72ff0951a0452e3cf4006d378d46
parent688035f83ef0a3b492b9ff9748518d6d45b4f107
drm/xe: Do not reference loop variable directly

Do not reference the loop variable job after the loop has exited.
Instead, save the job from the last iteration of the loop.

Fixes: 00937fe1921a ("drm/xe/vf: Start re-emission from first unsignaled job during VF migration")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/r/202511291102.jnnKP6IB-lkp@intel.com/
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Dnyaneshwar Bhadane <dnyaneshwar.bhadane@intel.com>
Link: https://patch.msgid.link/20251203011809.968893-1-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_guc_submit.c