OSDN Git Service

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)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 24 Feb 2016 18:06:46 +0000 (10:06 -0800)
commit5e64c29e98bfbba1b527b0a164f9493f3db9e8cb
tree9e0d8b236a3060800cc2bde08c74bf9008bb03c3
parent3b5394a3ccffbfa1d1d448d48742853a862822c4
mtd: onenand: fix deadlock in onenand_block_markbad

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>
drivers/mtd/onenand/onenand_base.c