]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/xe/exec: Fix minor bug related to xe_sync_entry_cleanup
authorAshutosh Dixit <ashutosh.dixit@intel.com>
Thu, 11 Jul 2024 21:12:03 +0000 (14:12 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 18 Jul 2024 14:25:17 +0000 (10:25 -0400)
commit408c2f14a5d3d7ac4824b96e52693ab271efb738
treee459231525c22f6f23c10b8e7c2c60e9592b5457
parent478a52707b0abe98aac7f8c53ccddb759be66b06
drm/xe/exec: Fix minor bug related to xe_sync_entry_cleanup

Increment num_syncs after xe_sync_entry_parse() is successful to ensure
the xe_sync_entry_cleanup() logic under "err_syncs" label works correctly.

v2: Use the same pattern as that in xe_vm.c (Matt Brost)

Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240711211203.3728180-1-ashutosh.dixit@intel.com
(cherry picked from commit 43a6faa6d9b5e9139758200a79fe9c8f4aaa0c8d)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_exec.c