From c21f900cb8817009930e672d22a5b91e5b706351 Mon Sep 17 00:00:00 2001 From: Kyungmin Park Date: Mon, 22 Oct 2007 11:01:52 +0900 Subject: [MTD] [OneNAND] Fix wrong free the static address in onenand_sim Reported-by: Randy Dunlap Signed-off-by: Kyungmin Park Signed-off-by: David Woodhouse --- drivers/mtd/onenand/onenand_sim.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/mtd') diff --git a/drivers/mtd/onenand/onenand_sim.c b/drivers/mtd/onenand/onenand_sim.c index d5b4888b4655..d64200b7c94b 100644 --- a/drivers/mtd/onenand/onenand_sim.c +++ b/drivers/mtd/onenand/onenand_sim.c @@ -425,7 +425,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) -- cgit v1.2.2