diff options
Diffstat (limited to 'drivers/video/controlfb.c')
-rw-r--r-- | drivers/video/controlfb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/controlfb.c b/drivers/video/controlfb.c index 04c6d928189b..fd60dba294da 100644 --- a/drivers/video/controlfb.c +++ b/drivers/video/controlfb.c | |||
@@ -696,11 +696,10 @@ static int __init control_of_init(struct device_node *dp) | |||
696 | printk(KERN_ERR "can't get 2 addresses for control\n"); | 696 | printk(KERN_ERR "can't get 2 addresses for control\n"); |
697 | return -ENXIO; | 697 | return -ENXIO; |
698 | } | 698 | } |
699 | p = kmalloc(sizeof(*p), GFP_KERNEL); | 699 | p = kzalloc(sizeof(*p), GFP_KERNEL); |
700 | if (p == 0) | 700 | if (p == 0) |
701 | return -ENXIO; | 701 | return -ENXIO; |
702 | control_fb = p; /* save it for cleanups */ | 702 | control_fb = p; /* save it for cleanups */ |
703 | memset(p, 0, sizeof(*p)); | ||
704 | 703 | ||
705 | /* Map in frame buffer and registers */ | 704 | /* Map in frame buffer and registers */ |
706 | p->fb_orig_base = fb_res.start; | 705 | p->fb_orig_base = fb_res.start; |