]> 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)
committerAshutosh Dixit <ashutosh.dixit@intel.com>
Fri, 12 Jul 2024 14:51:53 +0000 (07:51 -0700)
commit43a6faa6d9b5e9139758200a79fe9c8f4aaa0c8d
tree6d8345a19eb9a6abf5c0d5bda76cc597876c3341
parente97701a069612ba2fa1d92b56a720b108049df4e
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
drivers/gpu/drm/xe/xe_exec.c