diff options
Diffstat (limited to 'drivers/mtd/mtdoops.c')
-rw-r--r-- | drivers/mtd/mtdoops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/mtdoops.c b/drivers/mtd/mtdoops.c index cea9279ceabf..f3cdce9a85a6 100644 --- a/drivers/mtd/mtdoops.c +++ b/drivers/mtd/mtdoops.c | |||
@@ -372,7 +372,7 @@ static void mtdoops_notify_add(struct mtd_info *mtd) | |||
372 | 372 | ||
373 | /* oops_page_used is a bit field */ | 373 | /* oops_page_used is a bit field */ |
374 | cxt->oops_page_used = vmalloc(DIV_ROUND_UP(mtdoops_pages, | 374 | cxt->oops_page_used = vmalloc(DIV_ROUND_UP(mtdoops_pages, |
375 | BITS_PER_LONG)); | 375 | BITS_PER_LONG) * sizeof(unsigned long)); |
376 | if (!cxt->oops_page_used) { | 376 | if (!cxt->oops_page_used) { |
377 | printk(KERN_ERR "mtdoops: could not allocate page array\n"); | 377 | printk(KERN_ERR "mtdoops: could not allocate page array\n"); |
378 | return; | 378 | return; |