]> git.karo-electronics.de Git - karo-tx-linux.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>
Tue, 16 Aug 2011 13:44:11 +0000 (16:44 +0300)
commit3d1a8dde6f3624d341f559fa5fac2666dbf4ef59
tree292ed98b64d294ea0ca6f3d935c75a14bf9728b9
parentaa4fbb19d0bea5bcd0318d19cf4a816c7b143804
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