From: Brian Norris Date: Sat, 28 Feb 2015 10:13:12 +0000 (-0800) Subject: mtd: nand_bbt: unify/fix error handling in nand_scan_bbt() X-Git-Tag: omap-for-v4.2/fixes-rc1^2~143^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83c59542d0af36d6331e11869cd3d8197dec1551;p=pandora-kernel.git mtd: nand_bbt: unify/fix error handling in nand_scan_bbt() Don't leak this->bbt, and return early if check_create() fails. It helps to have a single error path to avoid these problems. Signed-off-by: Brian Norris --- Reading git-diff-tree failed