projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2867f5
)
vc4: Clear padding of ioctl arguments.
author
Eric Anholt
<eric@anholt.net>
Fri, 22 Aug 2014 23:36:29 +0000
(16:36 -0700)
committer
Eric Anholt
<eric@anholt.net>
Sat, 23 Aug 2014 23:30:34 +0000
(16:30 -0700)
Fixes valgrind complaints from valgrind being unaware of our ioctls.
src/gallium/drivers/vc4/vc4_bufmgr.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc4/vc4_bufmgr.c
b/src/gallium/drivers/vc4/vc4_bufmgr.c
index 6d622c063d675beabe89af326ddc3e5691a42486..7664d860995400dd1234909ec4d4837080263e68 100644
(file)
--- a/
src/gallium/drivers/vc4/vc4_bufmgr.c
+++ b/
src/gallium/drivers/vc4/vc4_bufmgr.c
@@
-77,6
+77,7
@@
vc4_bo_free(struct vc4_bo *bo)
}
struct drm_gem_close c;
+ memset(&c, 0, sizeof(c));
c.handle = bo->handle;
int ret = drmIoctl(screen->fd, DRM_IOCTL_GEM_CLOSE, &c);
if (ret != 0)