Skip to content

Commit

Permalink
[MTD] [OneNAND] Fix wrong free the static address in onenand_sim
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kyungmin Park authored and David Woodhouse committed Oct 22, 2007
1 parent eb68450 commit c21f900
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/mtd/onenand/onenand_sim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c21f900

Please sign in to comment.