[PATCH v2] mtd: onenand: fix deadlock in onenand_block_markbad

Brian Norris computersforpeace at gmail.com
Wed Feb 24 10:19:57 PST 2016


On Sat, Feb 20, 2016 at 10:27:48PM +0200, Aaro Koskinen wrote:
> Commit 5942ddbc500d ("mtd: introduce mtd_block_markbad interface")
> incorrectly changed onenand_block_markbad() to call mtd_block_markbad
> instead of onenand_chip's block_markbad function. As a result the function
> will now recurse and deadlock. Fix by reverting the change.
> 
> Fixes: 5942ddbc500d ("mtd: introduce mtd_block_markbad interface")

Good to know onenand has been getting tested sometime in the last 5
year! /s

> Signed-off-by: Aaro Koskinen <aaro.koskinen at iki.fi>
> ---
> 
> 	v2: Don't ignore the return value.
> 
> 	v1: http://lists.infradead.org/pipermail/linux-mtd/2016-February/065582.html

Marked for -stable and pushed to l2-mtd.git.

Thanks,
Brian



More information about the linux-mtd mailing list