From 1490055bc05fa941b59d10e89ef3fccd673af477 Mon Sep 17 00:00:00 2001 From: Connor Behan Date: Tue, 24 Mar 2015 13:53:51 -0400 Subject: [PATCH] xf86drm: Fix ioctl struct clearing in drmAgpEnable This one is a bit harder to notice. Signed-off-by: Connor Behan Reviewed-by: Emil Velikov --- xf86drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xf86drm.c b/xf86drm.c index e73cdddc..ffc53b89 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -1719,7 +1719,7 @@ int drmAgpEnable(int fd, unsigned long mode) { drm_agp_mode_t m; - memclear(mode); + memclear(m); m.mode = mode; if (drmIoctl(fd, DRM_IOCTL_AGP_ENABLE, &m)) return -errno;