xf86drm: Fix ioctl struct clearing in drmAgpEnable
This one is a bit harder to notice. Signed-off-by: Connor Behan <connor.behan@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>main
parent
37dc0a14cf
commit
1490055bc0
|
@ -1719,7 +1719,7 @@ int drmAgpEnable(int fd, unsigned long mode)
|
||||||
{
|
{
|
||||||
drm_agp_mode_t m;
|
drm_agp_mode_t m;
|
||||||
|
|
||||||
memclear(mode);
|
memclear(m);
|
||||||
m.mode = mode;
|
m.mode = mode;
|
||||||
if (drmIoctl(fd, DRM_IOCTL_AGP_ENABLE, &m))
|
if (drmIoctl(fd, DRM_IOCTL_AGP_ENABLE, &m))
|
||||||
return -errno;
|
return -errno;
|
||||||
|
|
Loading…
Reference in New Issue