public inbox for intel-xe@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH v2] drm/xe/vm: Add missing pad and extensions check
@ 2026-03-31 18:12 Jonathan Cavitt
  2026-03-31 18:13 ` Cavitt, Jonathan
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Jonathan Cavitt @ 2026-03-31 18:12 UTC (permalink / raw)
  To: intel-xe; +Cc: saurabhg.gupta, alex.zuo, jonathan.cavitt, matthew.auld

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>
---
 drivers/gpu/drm/xe/xe_vm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c
index 56e2db50bb36..1720205c09ca 100644
--- a/drivers/gpu/drm/xe/xe_vm.c
+++ b/drivers/gpu/drm/xe/xe_vm.c
@@ -4156,7 +4156,8 @@ int xe_vm_get_property_ioctl(struct drm_device *drm, void *data,
 	int ret = 0;
 
 	if (XE_IOCTL_DBG(xe, (args->reserved[0] || args->reserved[1] ||
-			      args->reserved[2])))
+			      args->reserved[2] || args->extensions ||
+			      args->pad)))
 		return -EINVAL;
 
 	vm = xe_vm_lookup(xef, args->vm_id);
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-04-01 15:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-31 18:12 [PATCH v2] drm/xe/vm: Add missing pad and extensions check Jonathan Cavitt
2026-03-31 18:13 ` Cavitt, Jonathan
2026-03-31 19:31 ` ✓ CI.KUnit: success for drm/xe/vm: Add missing pad and extensions check (rev2) Patchwork
2026-04-01  2:15 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-04-01  2:30 ` [PATCH v2] drm/xe/vm: Add missing pad and extensions check Matthew Brost
2026-04-01  5:45 ` ✓ Xe.CI.BAT: success for drm/xe/vm: Add missing pad and extensions check (rev2) Patchwork
2026-04-01 15:53 ` [PATCH v2] drm/xe/vm: Add missing pad and extensions check Matthew Auld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox