commit | 83c59542d0af36d6331e11869cd3d8197dec1551 | [log] [tgz] |
---|---|---|
author | Brian Norris <computersforpeace@gmail.com> | Sat Feb 28 02:13:12 2015 -0800 |
committer | Brian Norris <computersforpeace@gmail.com> | Wed May 06 20:02:36 2015 -0700 |
tree | 6e7f573e686ed4233c1944ef4330bae69edb8088 | |
parent | 17799359e7b3fa6ef4f2bf926cd6821cf7903ecf [diff] |
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 <computersforpeace@gmail.com>