diff options
Diffstat (limited to 'drivers/video/fbmon.c')
-rw-r--r-- | drivers/video/fbmon.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/fbmon.c b/drivers/video/fbmon.c index 0ef75a9f84af..7c74e7325d95 100644 --- a/drivers/video/fbmon.c +++ b/drivers/video/fbmon.c | |||
@@ -528,10 +528,9 @@ static struct fb_videomode *fb_create_modedb(unsigned char *edid, int *dbsize) | |||
528 | unsigned char *block; | 528 | unsigned char *block; |
529 | int num = 0, i; | 529 | int num = 0, i; |
530 | 530 | ||
531 | mode = kmalloc(50 * sizeof(struct fb_videomode), GFP_KERNEL); | 531 | mode = kzalloc(50 * sizeof(struct fb_videomode), GFP_KERNEL); |
532 | if (mode == NULL) | 532 | if (mode == NULL) |
533 | return NULL; | 533 | return NULL; |
534 | memset(mode, 0, 50 * sizeof(struct fb_videomode)); | ||
535 | 534 | ||
536 | if (edid == NULL || !edid_checksum(edid) || | 535 | if (edid == NULL || !edid_checksum(edid) || |
537 | !edid_check_header(edid)) { | 536 | !edid_check_header(edid)) { |