Files
linux/drivers
Atsushi Nemoto 272023df26 mtd: nand: Fix memory leak on txx9ndfmc probe failure.
Commit 81933046ef ('mtd: Fix handling of
mtdname in txx9ndfmc.c') introduced a potential memory leak. The
'mtdname' member of the private data structure is now allocated
separately, but was not freed on certain error paths.

Fix that, and make things simpler by _always_ allocating it separately
so that we don't need 'if (mtdname != dev_name()) kfree(mtdname);'...
which gets ugly now that we're doing it more than once, and more likely
that we'll get it wrong some time.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2009-06-09 14:31:15 +01:00
..
2009-05-22 07:30:41 -07:00
2009-04-01 08:59:23 -07:00
2009-05-07 17:28:59 +02:00
2009-04-14 19:46:19 -07:00
2009-05-29 08:42:38 -07:00
2009-04-05 00:32:22 +02:00