xf86drm: Fix ioctl struct clearing in drmGetVersion
Oops, fumbled that one. Reported-by: Jan Vesely <jan.vesely@rutgers.edu> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>main
parent
3a6c65c546
commit
95f23cf894
|
@ -768,7 +768,7 @@ drmVersionPtr drmGetVersion(int fd)
|
||||||
drmVersionPtr retval;
|
drmVersionPtr retval;
|
||||||
drm_version_t *version = drmMalloc(sizeof(*version));
|
drm_version_t *version = drmMalloc(sizeof(*version));
|
||||||
|
|
||||||
memclear(version);
|
memclear(*version);
|
||||||
|
|
||||||
if (drmIoctl(fd, DRM_IOCTL_VERSION, version)) {
|
if (drmIoctl(fd, DRM_IOCTL_VERSION, version)) {
|
||||||
drmFreeKernelVersion(version);
|
drmFreeKernelVersion(version);
|
||||||
|
|
Loading…
Reference in New Issue