We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56570bd commit 2399401Copy full SHA for 2399401
drivers/mtd/maps/pxa2xx-flash.c
@@ -64,6 +64,7 @@ static int pxa2xx_flash_probe(struct platform_device *pdev)
64
if (!info->map.virt) {
65
printk(KERN_WARNING "Failed to ioremap %s\n",
66
info->map.name);
67
+ kfree(info);
68
return -ENOMEM;
69
}
70
info->map.cached = ioremap_cache(info->map.phys, info->map.size);
@@ -85,6 +86,7 @@ static int pxa2xx_flash_probe(struct platform_device *pdev)
85
86
iounmap((void *)info->map.virt);
87
if (info->map.cached)
88
iounmap(info->map.cached);
89
90
return -EIO;
91
92
info->mtd->dev.parent = &pdev->dev;
0 commit comments