summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/onenand
diff options
context:
space:
mode:
authorKyungmin Park <kmpark@infradead.org>2007-10-22 11:01:52 +0900
committerDavid Woodhouse <dwmw2@infradead.org>2007-10-22 09:57:28 +0100
commitc21f900cb8817009930e672d22a5b91e5b706351 (patch)
treec8574338d2d232586cfbbe7f2bf6740e05faf069 /drivers/mtd/onenand
parenteb684507159de2162cd6fc62f2b3a671afd5a61d (diff)
downloadblackbird-op-linux-c21f900cb8817009930e672d22a5b91e5b706351.tar.gz
blackbird-op-linux-c21f900cb8817009930e672d22a5b91e5b706351.zip
[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>
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r--drivers/mtd/onenand/onenand_sim.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mtd/onenand/onenand_sim.c b/drivers/mtd/onenand/onenand_sim.c
index d5b4888b4655..d64200b7c94b 100644
--- a/drivers/mtd/onenand/onenand_sim.c
+++ b/drivers/mtd/onenand/onenand_sim.c
@@ -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)
OpenPOWER on IntegriCloud