提交 c21f900c 编写于 作者: K Kyungmin Park 提交者: David Woodhouse

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

Reported-by: NRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册