[PATCH] xf86drm: Fix ioctl struct clearing in drmAgpEnable
Connor Behan
connor.behan at gmail.com
Tue Mar 24 10:53:51 PDT 2015
This one is a bit harder to notice.
Signed-off-by: Connor Behan <connor.behan at gmail.com>
---
xf86drm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/xf86drm.c b/xf86drm.c
index e73cddd..ffc53b8 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;
--
2.3.3
More information about the dri-devel
mailing list