linux/drivers/mtd/onenand
Aaro Koskinen 6c479a8fe4 mtd: onenand: fix deadlock in onenand_block_markbad
commit 5e64c29e98 upstream.

Commit 5942ddbc50 ("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: 5942ddbc50 ("mtd: introduce mtd_block_markbad interface")
Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Acked-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2016-05-01 00:05:50 +02:00
..
generic.c mtd: delete non-required instances of include <linux/init.h> 2014-03-10 22:42:22 -07:00
Kconfig mtd: onenand: remove OneNAND simulator 2013-04-05 13:19:26 +01:00
Makefile mtd: onenand: remove OneNAND simulator 2013-04-05 13:19:26 +01:00
omap2.c mtd: delete non-required instances of include <linux/init.h> 2014-03-10 22:42:22 -07:00
onenand_base.c mtd: onenand: fix deadlock in onenand_block_markbad 2016-05-01 00:05:50 +02:00
onenand_bbt.c mtd: nand: remove NAND_BBT_SCANEMPTY 2013-08-30 16:48:37 +01:00
samsung.c mtd: onenand: fix build warning for dma type 2014-05-20 16:35:31 -07:00
samsung.h mtd: onenand: Trivial cleanup in samsung.h 2014-01-11 12:00:25 -08:00