agp: info leak in agpioc_info_wrap()

On 64 bit systems the agp_info struct has a 4 byte hole between
->agp_mode and ->aper_base. We need to clear it to avoid disclosing
stack information to userspace.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by Dan Carpenter and committed by Dave Airlie 3cf0b031 0384dcae

+1
+1
drivers/char/agp/frontend.c
··· 730 730 731 731 agp_copy_info(agp_bridge, &kerninfo); 732 732 733 + memset(&userinfo, 0, sizeof(userinfo)); 733 734 userinfo.version.major = kerninfo.version.major; 734 735 userinfo.version.minor = kerninfo.version.minor; 735 736 userinfo.bridge_id = kerninfo.device->vendor |