OSDN Git Service

drivers/video/via/ioctl.c: prevent reading uninitialized stack memory
[android-x86/kernel.git] / drivers / video / via / ioctl.c
index da03c07..4d553d0 100644 (file)
@@ -25,6 +25,8 @@ int viafb_ioctl_get_viafb_info(u_long arg)
 {
        struct viafb_ioctl_info viainfo;
 
+       memset(&viainfo, 0, sizeof(struct viafb_ioctl_info));
+
        viainfo.viafb_id = VIAID;
        viainfo.vendor_id = PCI_VIA_VENDOR_ID;