mtd: nand: don't leak buffers when ->scan_bbt() fails
authorBrian Norris <computersforpeace@gmail.com>
Tue, 2 May 2017 00:04:50 +0000 (17:04 -0700)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Mon, 22 May 2017 07:42:29 +0000 (09:42 +0200)
commit44d4182e23c555cbfa8b8a0ad2d94664d23850d3
treeaaa0c1d2881e3fd6bf69e37c91869a338113ef72
parent08332893e37af6ae779367e78e444f8f9571511d
mtd: nand: don't leak buffers when ->scan_bbt() fails

This bug seems to have been here forever, although we came close to
fixing all of them in [1]!

[1] 11eaf6df1cce ("mtd: nand: Remove BUG() abuse in nand_scan_tail")

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/nand_base.c