diff options
-rw-r--r-- | drivers/video/fbdev/uvesafb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/fbdev/uvesafb.c b/drivers/video/fbdev/uvesafb.c index 73676eb0244a..c592ca513115 100644 --- a/drivers/video/fbdev/uvesafb.c +++ b/drivers/video/fbdev/uvesafb.c | |||
@@ -1044,7 +1044,8 @@ static int uvesafb_setcmap(struct fb_cmap *cmap, struct fb_info *info) | |||
1044 | info->cmap.len || cmap->start < info->cmap.start) | 1044 | info->cmap.len || cmap->start < info->cmap.start) |
1045 | return -EINVAL; | 1045 | return -EINVAL; |
1046 | 1046 | ||
1047 | entries = kmalloc(sizeof(*entries) * cmap->len, GFP_KERNEL); | 1047 | entries = kmalloc_array(cmap->len, sizeof(*entries), |
1048 | GFP_KERNEL); | ||
1048 | if (!entries) | 1049 | if (!entries) |
1049 | return -ENOMEM; | 1050 | return -ENOMEM; |
1050 | 1051 | ||