]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MTD] [OneNAND] Fix wrong free the static address in onenand_sim
authorKyungmin Park <kmpark@infradead.org>
Mon, 22 Oct 2007 02:01:52 +0000 (11:01 +0900)
committerDavid Woodhouse <dwmw2@infradead.org>
Mon, 22 Oct 2007 08:57:28 +0000 (09:57 +0100)
Reported-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/onenand/onenand_sim.c

index d5b4888b4655b312627cde54c22d573d4e81585c..d64200b7c94bfd4c0caf5dc782ba2146d0f584f9 100644 (file)
@@ -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)