Commit c21f900c authored by Kyungmin Park's avatar Kyungmin Park Committed by David Woodhouse

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

Reported-by: default avatarRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent eb684507
...@@ -425,7 +425,6 @@ static void flash_exit(struct onenand_flash *flash) ...@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment