]> err.no Git - linux-2.6/blobdiff - drivers/video/fbmon.c
[PATCH] rio driver rework continued #4
[linux-2.6] / drivers / video / fbmon.c
index 0ef75a9f84affb10277d283f1d3d4573f513f262..7c74e7325d95a1830ef0d36aac0680462ff62fac 100644 (file)
@@ -528,10 +528,9 @@ static struct fb_videomode *fb_create_modedb(unsigned char *edid, int *dbsize)
        unsigned char *block;
        int num = 0, i;
 
-       mode = kmalloc(50 * sizeof(struct fb_videomode), GFP_KERNEL);
+       mode = kzalloc(50 * sizeof(struct fb_videomode), GFP_KERNEL);
        if (mode == NULL)
                return NULL;
-       memset(mode, 0, 50 * sizeof(struct fb_videomode));
 
        if (edid == NULL || !edid_checksum(edid) || 
            !edid_check_header(edid)) {