summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/w100fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbdev/w100fb.c')
-rw-r--r--drivers/video/fbdev/w100fb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/fbdev/w100fb.c b/drivers/video/fbdev/w100fb.c
index 035ff6e02894..696106ecdff0 100644
--- a/drivers/video/fbdev/w100fb.c
+++ b/drivers/video/fbdev/w100fb.c
@@ -693,7 +693,8 @@ int w100fb_probe(struct platform_device *pdev)
goto out;
}
- info->pseudo_palette = kmalloc(sizeof (u32) * MAX_PALETTES, GFP_KERNEL);
+ info->pseudo_palette = kmalloc_array(MAX_PALETTES, sizeof(u32),
+ GFP_KERNEL);
if (!info->pseudo_palette) {
err = -ENOMEM;
goto out;