summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev/pvr2fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbdev/pvr2fb.c')
-rw-r--r--drivers/video/fbdev/pvr2fb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/pvr2fb.c b/drivers/video/fbdev/pvr2fb.c
index a582d3ae7ac1..8a53d1de611d 100644
--- a/drivers/video/fbdev/pvr2fb.c
+++ b/drivers/video/fbdev/pvr2fb.c
@@ -682,7 +682,7 @@ static ssize_t pvr2fb_write(struct fb_info *info, const char *buf,
nr_pages = (count + PAGE_SIZE - 1) >> PAGE_SHIFT;
- pages = kmalloc(nr_pages * sizeof(struct page *), GFP_KERNEL);
+ pages = kmalloc_array(nr_pages, sizeof(struct page *), GFP_KERNEL);
if (!pages)
return -ENOMEM;