From: Florin Malita Date: Thu, 19 Jul 2007 19:22:41 +0000 (-0400) Subject: UBI: fix leak in ubi_scan_erase_peb X-Git-Tag: v2.6.24-rc1~1324^2^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcec4c3bdc4d5f4bd2d858ee1ce11e3424cbaed7;p=pandora-kernel.git UBI: fix leak in ubi_scan_erase_peb Coverity (1769) found the following problem: if the erase counter overflow check triggers, ec_hdr is leaked. Moving the allocation after the overflow check should take care of it. Signed-off-by: Florin Malita Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed