mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-05 11:18:11 +02:00
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>
This commit is contained in:
parent
37dc0a14cf
commit
1490055bc0
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue