]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: fsmc_nand: fix a memory leak
authorAxel Lin <axel.lin@gmail.com>
Fri, 3 Jun 2011 05:15:30 +0000 (13:15 +0800)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Sun, 11 Sep 2011 12:01:59 +0000 (15:01 +0300)
commitbcb18993f8c0a1cb5c6978e692b21f5d153c1ef2
tree67408171675ff33e0dab84e90ef13509e5a0bcf0
parent868cebff692ec98a65b202ebe27c0953d0afb3ea
mtd: fsmc_nand: fix a memory leak

In fsmc_nand_remove, we should call nand_release instead of
mtd_device_unregister to properly free bad block table memory
and bad block descriptor memory.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/nand/fsmc_nand.c