diff options
Diffstat (limited to 'drivers/mtd/inftlmount.c')
-rw-r--r-- | drivers/mtd/inftlmount.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mtd/inftlmount.c b/drivers/mtd/inftlmount.c index b26aea1f640a..43fdc9433882 100644 --- a/drivers/mtd/inftlmount.c +++ b/drivers/mtd/inftlmount.c | |||
@@ -575,10 +575,11 @@ int INFTL_mount(struct INFTLrecord *s) | |||
575 | /* Temporary buffer to store ANAC numbers. */ | 575 | /* Temporary buffer to store ANAC numbers. */ |
576 | ANACtable = kmalloc(s->nb_blocks * sizeof(u8), GFP_KERNEL); | 576 | ANACtable = kmalloc(s->nb_blocks * sizeof(u8), GFP_KERNEL); |
577 | if (!ANACtable) { | 577 | if (!ANACtable) { |
578 | printk(KERN_ERR "INFTL: Out of memory.\n"); | 578 | printk(KERN_WARNING "INFTL: allocation of ANACtable " |
579 | "failed (%zd bytes)\n", | ||
580 | s->nb_blocks * sizeof(u8)); | ||
579 | return -ENOMEM; | 581 | return -ENOMEM; |
580 | } | 582 | } |
581 | |||
582 | memset(ANACtable, 0, s->nb_blocks); | 583 | memset(ANACtable, 0, s->nb_blocks); |
583 | 584 | ||
584 | /* | 585 | /* |