mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-03 18:21:23 +00:00
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>
This commit is contained in:
parent
17799359e7
commit
83c59542d0
1 changed files with 12 additions and 7 deletions
Loading…
Add table
Add a link
Reference in a new issue