kernel/drivers/mtd/maps/pxa2xx-flash.c
.. .. @@ -66,6 +66,7 @@ 66 66 if (!info->map.virt) { 67 67 printk(KERN_WARNING "Failed to ioremap %s\n", 68 68 info->map.name); 69 + kfree(info);69 70 return -ENOMEM; 70 71 } 71 72 info->map.cached = ioremap_cache(info->map.phys, info->map.size); .. .. @@ -87,6 +88,7 @@ 87 88 iounmap((void *)info->map.virt); 88 89 if (info->map.cached) 89 90 iounmap(info->map.cached); 91 + kfree(info);90 92 return -EIO; 91 93 } 92 94 info->mtd->dev.parent = &pdev->dev;