Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/xe/vm: Add missing pad and extensions check

Add missing pad and extensions check to xe_vm_get_property_ioctl

v2:
- Combine with other check (Auld)

Fixes: 50c577eab051 ("drm/xe/xe_vm: Implement xe_vm_get_property_ioctl")
Suggested-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patch.msgid.link/20260331181216.37775-2-jonathan.cavitt@intel.com
(cherry picked from commit 896070686b16cc45cca7854be2049923b2b303d3)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

authored by

Jonathan Cavitt and committed by
Rodrigo Vivi
2bc0cce2 a0fc362f

+2 -1
+2 -1
drivers/gpu/drm/xe/xe_vm.c
··· 4156 4156 int ret = 0; 4157 4157 4158 4158 if (XE_IOCTL_DBG(xe, (args->reserved[0] || args->reserved[1] || 4159 - args->reserved[2]))) 4159 + args->reserved[2] || args->extensions || 4160 + args->pad))) 4160 4161 return -EINVAL; 4161 4162 4162 4163 vm = xe_vm_lookup(xef, args->vm_id);