diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-06-07 10:55:21 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 08:02:05 -0400 |
commit | 96166056076af59d40e5b5aec5b09611c74cc911 (patch) | |
tree | b651a45ff70485045dc931138ff07e54eaab1ea2 /drivers/mtd/nand/ndfc.c | |
parent | ad274cecdbce18d13075bde3aabe5882802056de (diff) |
mtd: ndfc: fix a memory leak in ndfc_remove
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/nand/ndfc.c')
-rw-r--r-- | drivers/mtd/nand/ndfc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/ndfc.c b/drivers/mtd/nand/ndfc.c index cb66fd79f1fa..70c04ffa573c 100644 --- a/drivers/mtd/nand/ndfc.c +++ b/drivers/mtd/nand/ndfc.c | |||
@@ -283,6 +283,7 @@ static int __devexit ndfc_remove(struct platform_device *ofdev) | |||
283 | struct ndfc_controller *ndfc = dev_get_drvdata(&ofdev->dev); | 283 | struct ndfc_controller *ndfc = dev_get_drvdata(&ofdev->dev); |
284 | 284 | ||
285 | nand_release(&ndfc->mtd); | 285 | nand_release(&ndfc->mtd); |
286 | kfree(ndfc->mtd.name); | ||
286 | 287 | ||
287 | return 0; | 288 | return 0; |
288 | } | 289 | } |