[PATCH] mtd: nand: don't leak buffers when ->scan_bbt() fails

Ezequiel Garcia ezequiel at vanguardiasur.com.ar
Mon May 1 17:22:03 PDT 2017


On 1 May 2017 at 21:04, Brian Norris <computersforpeace at gmail.com> wrote:
> 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")
>

Well, we came even closer. See [1] for a patch that fixes this by cleaning
BBT init and release.

Back then Boris suggested on IRC to wait for Peter Pan's BBT, which would
address this too.

It's interesting to note that: (1) the patch never got any formal feedback,
despite it was a fix; and (2) Peter Pan's work is still under development.

Guess I should have pressed the upstream buttons harder :-)

[1] http://lists.infradead.org/pipermail/linux-mtd/2016-April/066834.html,
[2] http://lists.infradead.org/pipermail/linux-mtd/2016-April/066835.html
-- 
Ezequiel García, VanguardiaSur
www.vanguardiasur.com.ar



More information about the linux-mtd mailing list