projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
388f7b1
)
drm/vc4: Validate that WAIT_BO padding is cleared.
author
Eric Anholt
<eric@anholt.net>
Mon, 25 Jan 2016 21:05:00 +0000
(13:05 -0800)
committer
Eric Anholt
<eric@anholt.net>
Tue, 16 Feb 2016 20:20:57 +0000
(12:20 -0800)
This is ABI future-proofing if we ever want to extend the pad to mean
something.
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/vc4/vc4_gem.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/vc4/vc4_gem.c
b/drivers/gpu/drm/vc4/vc4_gem.c
index 48ce30a6f4b5cebb21348c1148d85a8c2450e45f..cc89ffcfc6aabe2e7ec92be6e9e65adfcad378f6 100644
(file)
--- a/
drivers/gpu/drm/vc4/vc4_gem.c
+++ b/
drivers/gpu/drm/vc4/vc4_gem.c
@@
-746,6
+746,9
@@
vc4_wait_bo_ioctl(struct drm_device *dev, void *data,
struct drm_gem_object *gem_obj;
struct vc4_bo *bo;
+ if (args->pad != 0)
+ return -EINVAL;
+
gem_obj = drm_gem_object_lookup(dev, file_priv, args->handle);
if (!gem_obj) {
DRM_ERROR("Failed to look up GEM BO %d\n", args->handle);