]> git.itanic.dy.fi Git - linux-stable/commit
mtd: onenand: fix deadlock in onenand_block_markbad
authorAaro Koskinen <aaro.koskinen@iki.fi>
Sat, 20 Feb 2016 20:27:48 +0000 (22:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 7 Jun 2016 08:42:48 +0000 (10:42 +0200)
commit155025b224f3483e781e55f31719d80b4cf719fd
tree3939bc4ce25bf2ac5015d5ca7b64a358a3f1b12f
parent898eeac1638e9c353ba112d8106ba97ff4831676
mtd: onenand: fix deadlock in onenand_block_markbad

commit 5e64c29e98bfbba1b527b0a164f9493f3db9e8cb upstream.

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")
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Acked-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/mtd/onenand/onenand_base.c