diff --git a/drivers/mtd/mtdoops.c b/drivers/mtd/mtdoops.c index cea9279ceabf8c9b57a411a54fa17a4ebbde2ce6..f3cdce9a85a6602f2078ce1ffa67d095a26e4e7e 100644 --- a/drivers/mtd/mtdoops.c +++ b/drivers/mtd/mtdoops.c @@ -372,7 +372,7 @@ static void mtdoops_notify_add(struct mtd_info *mtd) /* oops_page_used is a bit field */ cxt->oops_page_used = vmalloc(DIV_ROUND_UP(mtdoops_pages, - BITS_PER_LONG)); + BITS_PER_LONG) * sizeof(unsigned long)); if (!cxt->oops_page_used) { printk(KERN_ERR "mtdoops: could not allocate page array\n"); return;