[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:
parent
eb68450715
commit
c21f900cb8
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue