public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [patch for 2.6.29? 4/4] mtd/maps: blackfin async flash maps: fix up memory leak
@ 2009-02-11 21:12 akpm
  2009-02-12  0:35 ` Atsushi Nemoto
  0 siblings, 1 reply; 7+ messages in thread
From: akpm @ 2009-02-11 21:12 UTC (permalink / raw)
  To: dwmw2; +Cc: akpm, linux-mtd, cooloney, vapier.adi

From: Mike Frysinger <vapier.adi@gmail.com>

Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/mtd/maps/bfin-async-flash.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN drivers/mtd/maps/bfin-async-flash.c~mtd-maps-blackfin-async-flash-maps-fix-up-memory-leak drivers/mtd/maps/bfin-async-flash.c
--- a/drivers/mtd/maps/bfin-async-flash.c~mtd-maps-blackfin-async-flash-maps-fix-up-memory-leak
+++ a/drivers/mtd/maps/bfin-async-flash.c
@@ -170,6 +170,7 @@ static int __devinit bfin_flash_probe(st
 	if (ret > 0) {
 		pr_devinit(KERN_NOTICE DRIVER_NAME ": Using commandline partition definition\n");
 		add_mtd_partitions(state->mtd, pdata->parts, ret);
+		kfree(pdata->parts);
 
 	} else if (pdata->nr_parts) {
 		pr_devinit(KERN_NOTICE DRIVER_NAME ": Using board partition definition\n");
_

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-02-19  1:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-11 21:12 [patch for 2.6.29? 4/4] mtd/maps: blackfin async flash maps: fix up memory leak akpm
2009-02-12  0:35 ` Atsushi Nemoto
2009-02-12  0:42   ` Andrew Morton
2009-02-14  8:57     ` David Woodhouse
2009-02-17 20:02       ` Mike Frysinger
2009-02-19  0:37         ` Atsushi Nemoto
2009-02-19  1:19           ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox