From 95f23cf894757d05a6b6c980062a46968dc069b1 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Wed, 11 Feb 2015 17:25:30 +0100 Subject: [PATCH] xf86drm: Fix ioctl struct clearing in drmGetVersion Oops, fumbled that one. Reported-by: Jan Vesely Signed-off-by: Daniel Vetter --- xf86drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xf86drm.c b/xf86drm.c index a2e24eb5..ed385472 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -768,7 +768,7 @@ drmVersionPtr drmGetVersion(int fd) drmVersionPtr retval; drm_version_t *version = drmMalloc(sizeof(*version)); - memclear(version); + memclear(*version); if (drmIoctl(fd, DRM_IOCTL_VERSION, version)) { drmFreeKernelVersion(version);