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

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>
This commit is contained in:
Kyungmin Park 2007-10-22 11:01:52 +09:00 committed by David Woodhouse
parent eb68450715
commit c21f900cb8
1 changed files with 0 additions and 1 deletions

View File

@ -425,7 +425,6 @@ static void flash_exit(struct onenand_flash *flash)
{ {
vfree(ONENAND_CORE(flash)); vfree(ONENAND_CORE(flash));
kfree(flash->base); kfree(flash->base);
kfree(flash);
} }
static int __init onenand_sim_init(void) static int __init onenand_sim_init(void)