summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/mmp/fb/mmpfb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbdev/mmp/fb/mmpfb.c')
-rw-r--r--drivers/video/fbdev/mmp/fb/mmpfb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/mmp/fb/mmpfb.c b/drivers/video/fbdev/mmp/fb/mmpfb.c
index 92279e02dd94..f27697e07c55 100644
--- a/drivers/video/fbdev/mmp/fb/mmpfb.c
+++ b/drivers/video/fbdev/mmp/fb/mmpfb.c
@@ -493,8 +493,8 @@ static int modes_setup(struct mmpfb_info *fbi)
return 0;
}
/* put videomode list to info structure */
- videomodes = kzalloc(sizeof(struct fb_videomode) * videomode_num,
- GFP_KERNEL);
+ videomodes = kcalloc(videomode_num, sizeof(struct fb_videomode),
+ GFP_KERNEL);
if (!videomodes) {
dev_err(fbi->dev, "can't malloc video modes\n");
return -ENOMEM;