Commit e0015236 authored by Eric Anholt's avatar Eric Anholt

drm/vc4: Validate that WAIT_BO padding is cleared.

This is ABI future-proofing if we ever want to extend the pad to mean
something.
Signed-off-by: default avatarEric Anholt <eric@anholt.net>
parent 388f7b1d
...@@ -746,6 +746,9 @@ vc4_wait_bo_ioctl(struct drm_device *dev, void *data, ...@@ -746,6 +746,9 @@ vc4_wait_bo_ioctl(struct drm_device *dev, void *data,
struct drm_gem_object *gem_obj; struct drm_gem_object *gem_obj;
struct vc4_bo *bo; struct vc4_bo *bo;
if (args->pad != 0)
return -EINVAL;
gem_obj = drm_gem_object_lookup(dev, file_priv, args->handle); gem_obj = drm_gem_object_lookup(dev, file_priv, args->handle);
if (!gem_obj) { if (!gem_obj) {
DRM_ERROR("Failed to look up GEM BO %d\n", args->handle); DRM_ERROR("Failed to look up GEM BO %d\n", args->handle);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment