From: Kyungmin Park Date: Mon, 22 Oct 2007 02:01:52 +0000 (+0900) Subject: [MTD] [OneNAND] Fix wrong free the static address in onenand_sim X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c21f900cb8817009930e672d22a5b91e5b706351;p=linux-beck.git [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 --- 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)