]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mtd: pxa3xx_nand: fix a memory leak
authorAxel Lin <axel.lin@gmail.com>
Fri, 3 Jun 2011 05:14:10 +0000 (13:14 +0800)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Tue, 16 Aug 2011 13:44:10 +0000 (16:44 +0300)
commitaa4fbb19d0bea5bcd0318d19cf4a816c7b143804
tree6af9c1ca4990012c61955b825731fd22a9475b24
parent0d003f05ebfa357a6ae639f352b2c1457ac6d43a
mtd: pxa3xx_nand: fix a memory leak

In pxa3xx_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>
Acked-by: Lei Wen <leiwen@marvell.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/nand/pxa3xx_nand.c