From: Axel Lin Date: Fri, 3 Jun 2011 05:14:10 +0000 (+0800) Subject: mtd: pxa3xx_nand: fix a memory leak X-Git-Tag: v3.2-rc1~14^2~203 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a3591920e5100ba112a19e10a09ce7a5da1ab23;p=pandora-kernel.git 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 Acked-by: Lei Wen Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed