[MTD] [OneNAND] Fix wrong free the static address in onenand_sim

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Oct 22 05:59:02 EDT 2007


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=c21f900cb8817009930e672d22a5b91e5b706351
Commit:     c21f900cb8817009930e672d22a5b91e5b706351
Parent:     eb684507159de2162cd6fc62f2b3a671afd5a61d
Author:     Kyungmin Park <kmpark at infradead.org>
AuthorDate: Mon Oct 22 11:01:52 2007 +0900
Committer:  David Woodhouse <dwmw2 at infradead.org>
CommitDate: Mon Oct 22 09:57:28 2007 +0100

    [MTD] [OneNAND] Fix wrong free the static address in onenand_sim
    
    Reported-by: Randy Dunlap <randy.dunlap at oracle.com>
    Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
---
 drivers/mtd/onenand/onenand_sim.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/onenand/onenand_sim.c b/drivers/mtd/onenand/onenand_sim.c
index d5b4888..d64200b 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)



More information about the linux-mtd-cvs mailing list