summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>2023-09-20 22:29:21 +0300
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 19:43:01 +0300
commitfd47ded2379265b58dd5ae699fa1f5a14e65fdfc (patch)
tree9f7e0e84965a683dc4c019b080ecbc1577c81788 /include
parent6de492ae5f5ee6edccf1e1fae472bc5f95cec8e6 (diff)
downloadlinux-fd47ded2379265b58dd5ae699fa1f5a14e65fdfc.tar.xz
drm/xe: Fix array bounds check for queries
Queries are 0-indexed, so a query with value N is invalid if the ARRAY_SIZE is N. Modify the check to account for that. Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs") Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com> Reviewed-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com> Signed-off-by: Francois Dugast <francois.dugast@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions