]> err.no Git - linux-2.6/blobdiff - drivers/mtd/inftlmount.c
[MTD] NAND consolidate data types
[linux-2.6] / drivers / mtd / inftlmount.c
index b26aea1f640a8836f148451e366714f8db9fcd25..43fdc943388241bcceeacd66b410ec15612699d2 100644 (file)
@@ -575,10 +575,11 @@ int INFTL_mount(struct INFTLrecord *s)
        /* Temporary buffer to store ANAC numbers. */
        ANACtable = kmalloc(s->nb_blocks * sizeof(u8), GFP_KERNEL);
        if (!ANACtable) {
-               printk(KERN_ERR "INFTL: Out of memory.\n");
+               printk(KERN_WARNING "INFTL: allocation of ANACtable "
+                               "failed (%zd bytes)\n",
+                               s->nb_blocks * sizeof(u8));
                return -ENOMEM;
        }
-
        memset(ANACtable, 0, s->nb_blocks);
 
        /*