[PATCH] [MTD] [OneNAND] Fix wrong free the static address
Kyungmin Park
kmpark at infradead.org
Sun Oct 21 22:01:52 EDT 2007
[MTD] [OneNAND] Fix wrong free the static address
Reported-by: Randy Dunlap <randy.dunlap at oracle.com>
Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
---
diff --git a/drivers/mtd/onenand/onenand_sim.c b/drivers/mtd/onenand/onenand_sim.c
index 0d89ad5..288cbd7 100644
--- a/drivers/mtd/onenand/onenand_sim.c
+++ b/drivers/mtd/onenand/onenand_sim.c
@@ -424,7 +424,6 @@ static void flash_exit(struct onenand_flash *flash)
{
vfree(ONENAND_CORE(flash));
kfree(flash->base);
- kfree(flash);
}
static int __init onenand_sim_init(void)
More information about the linux-mtd
mailing list