diff options
author | Brian Norris | 2015-02-28 11:13:12 +0100 |
---|---|---|
committer | Brian Norris | 2015-05-07 05:02:36 +0200 |
commit | 83c59542d0af36d6331e11869cd3d8197dec1551 (patch) | |
tree | 6e7f573e686ed4233c1944ef4330bae69edb8088 /drivers/mtd/nand/mpc5121_nfc.c | |
parent | mtd: nand_bbt: make nand_scan_bbt() static (diff) | |
download | kernel-qcow2-linux-83c59542d0af36d6331e11869cd3d8197dec1551.tar.gz kernel-qcow2-linux-83c59542d0af36d6331e11869cd3d8197dec1551.tar.xz kernel-qcow2-linux-83c59542d0af36d6331e11869cd3d8197dec1551.zip |
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>
Diffstat (limited to 'drivers/mtd/nand/mpc5121_nfc.c')
0 files changed, 0 insertions, 0 deletions