diff options
| author | Matthew Auld <matthew.auld@intel.com> | 2026-10-15 11:34:16 +0100 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2026-11-09 19:17:57 +1000 |
| commit | eeae08f98bda4350baa5a76f37b23fab4fa426f7 (patch) | |
| tree | e87e536fe352040e8f6ebadb2bb976fd6678591a /rust/kernel/alloc/kvec/errors.rs | |
| parent | da475c094342b6d5c8bc020b19d6900130bed047 (diff) | |
drm/xe/madvise: use already clamped pat_index
Pass the nospec-clamped pat_index to check_pat_args_are_sane() instead
of the raw args->pat_index.val, and fold into the preceding
DRM_XE_MEM_RANGE_ATTR_PAT block.
Assisted-by: LLM
Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://sashiko.dev/#/message/sashiko-outbox-172627%40kernel.org
Fixes: 016ccdb674b8 ("drm/xe/uapi: Reject coh_none PAT index for CPU cached memory in madvise")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Alan Previn <alan.previn.teres.alexis@intel.com>
Cc: Tejas Upadhyay <tejas.upadhyay@intel.com>
Cc: <stable@vger.kernel.org> # v7.2+
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Link: https://patch.msgid.link/20261015103415.442931-2-matthew.auld@intel.com
(cherry picked from commit 3be1bd59ced603d2e6a6ba9a4fe274308cea9965)
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions
