]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Fix possible exec queue leak in exec IOCTL
authorMatthew Brost <matthew.brost@intel.com>
Tue, 5 Nov 2024 04:35:23 +0000 (20:35 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 5 Nov 2024 23:40:12 +0000 (15:40 -0800)
commitaf797b831d8975cb4610f396dcb7f03f4b9908e7
tree89e4c8d846ce403b3b6afe806a695c2f06e8b5c8
parent1491efb39acee3848b61fcb3e5cc4be8de304352
drm/xe: Fix possible exec queue leak in exec IOCTL

In a couple of places after an exec queue is looked up the exec IOCTL
returns on input errors without dropping the exec queue ref. Fix this
ensuring the exec queue ref is dropped on input error.

Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Cc: <stable@vger.kernel.org>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241105043524.4062774-2-matthew.brost@intel.com
(cherry picked from commit 07064a200b40ac2195cb6b7b779897d9377e5e6f)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_exec.c