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-Tag: v2.6.24-rc1~32^2~2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c21f900cb8817009930e672d22a5b91e5b706351;p=linux-2.6 [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 d5b4888b46..d64200b7c9 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)