]> git.baikalelectronics.ru Git - kernel.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>
Sun, 11 Sep 2011 12:01:59 +0000 (15:01 +0300)
commit868cebff692ec98a65b202ebe27c0953d0afb3ea
tree762c22759586e350bda7846baef068294bcfa8fd
parent809867fa113d2d716f3b5cf3ad0f19434f192a60
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