]> 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 <dedekind1@gmail.com>
Thu, 23 Jun 2011 08:43:36 +0000 (11:43 +0300)
commit5fd75f99200c83bfe9283a1712893ecb4053fefd
tree0025628ecfe82ae90328341c7ac7aaa17586fb01
parent25575bcbef79d6ae445283c769c017c01521cb85
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