]> git.ipfire.org Git - thirdparty/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)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Mon, 15 Dec 2025 13:13:58 +0000 (14:13 +0100)
commit224a6ac0808d0f58e51df2f923332adcb80fd930
treed5850838ac4bbf8f96fe7a7d2334e5be990b623c
parentc88a0731ed95f9705deb127a7f1927fa59aa742b
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: 3d98a7164da6 ("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
(cherry picked from commit 76ce2313709f13a6adbcaa1a43a8539c8f509f6a)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
drivers/gpu/drm/xe/xe_guc_submit.c