* [PATCH] mtd: ndfc: fix a memory leak in ndfc_remove
@ 2011-06-07 14:55 Axel Lin
2011-06-08 11:08 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2011-06-07 14:55 UTC (permalink / raw)
To: linux-kernel; +Cc: David Woodhouse, Artem Bityutskiy, Sean MacLennan, linux-mtd
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
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 ea2dea8..7995470 100644
--- a/drivers/mtd/nand/ndfc.c
+++ b/drivers/mtd/nand/ndfc.c
@@ -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;
}
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mtd: ndfc: fix a memory leak in ndfc_remove
2011-06-07 14:55 [PATCH] mtd: ndfc: fix a memory leak in ndfc_remove Axel Lin
@ 2011-06-08 11:08 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2011-06-08 11:08 UTC (permalink / raw)
To: Axel Lin; +Cc: linux-kernel, David Woodhouse, linux-mtd, Sean MacLennan
On Tue, 2011-06-07 at 22:55 +0800, Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
> drivers/mtd/nand/ndfc.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
Pushed to l2-mtd-2.6.git, thanks!
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-08 11:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-07 14:55 [PATCH] mtd: ndfc: fix a memory leak in ndfc_remove Axel Lin
2011-06-08 11:08 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).