drm/xe/queue: fix engine_class bounds check
authorMatthew Auld <matthew.auld@intel.com>
Mon, 18 Mar 2024 18:05:33 +0000 (18:05 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Tue, 19 Mar 2024 08:47:47 +0000 (08:47 +0000)
commitfe87b7dfcb204a161d1e38b0e787b2f5ab520f32
treefcc5b7d4733d036f991379556bbb3435c28c58fc
parent4f4fcafde343a54465f85a2909fc684918507a4b
drm/xe/queue: fix engine_class bounds check

The engine_class is the index into the user_to_xe_engine_class,
therefore it needs to be less than.

Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Nirmoy Das <nirmoy.das@intel.com>
Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240318180532.57522-4-matthew.auld@intel.com
drivers/gpu/drm/xe/xe_exec_queue.c