]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - drivers/video/via/ioctl.c
drivers/video/via/ioctl.c: prevent reading uninitialized stack memory
[~shefty/rdma-dev.git] / drivers / video / via / ioctl.c
index da03c074e32aad8b909c4b11c57a4c5a9f9d9285..4d553d0b8d7a450b9337a9b4375856c5b304217c 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;