mtd: ndfc: fix a memory leak in ndfc_remove
Subsystems (2)
PATCH 1/1 mtd: ndfc: fix a memory leak in ndfc_remove
Signed-off-by Axel Lin <[email protected]>
--- drivers/mtd/nand/ndfc.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/mtd/nand/ndfc.c +1 -0
@@ -288,6 +288,7 @@ static int __devexit ndfc_remove(struct platform_device *ofdev)struct ndfc_controller *ndfc =dev_get_drvdata (&ofdev->dev);nand_release (&ndfc->mtd); +kfree (ndfc->mtd.name);return 0 ; }
Signature · 1 line
1.7.4.1
Artem Bityutskiy
AppliedQuoted 4 lines · Axel Lin
Signed-off-by Axel Lin <[email protected]>--- drivers/mtd/nand/ndfc.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Pushed to l2-mtd-2.6.git, thanks!
Signature · 2 lines
Best Regards, Artem Bityutskiy (Артём Битюцкий)