Patch "mtd: onenand: fix deadlock in onenand_block_markbad" has been added to the 3.14-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
mtd: onenand: fix deadlock in onenand_block_markbad
to the 3.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
mtd-onenand-fix-deadlock-in-onenand_block_markbad.patch
and it can be found in the queue-3.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
5e64c29e98bfbba1b527b0a164f9493f3db9e8cbMon Sep 17 00:00:00 2001
From: Aaro Koskinen <[email protected]>
Date: Sat, 20 Feb 2016 22:27:48 +0200
Subject: mtd: onenand: fix deadlock in onenand_block_markbad
From: Aaro Koskinen <[email protected]>
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.
--- drivers/mtd/onenand/onenand_base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mtd/onenand/onenand_base.c +2 -1
@@ -2606,6 +2606,7 @@ static int onenand_default_block_markbad*/ static int onenand_block_markbad (struct mtd_info *mtd,loff_t ofs) { +struct onenand_chip *this = mtd->priv;int ret; ret =onenand_block_isbad (mtd, ofs);
@@ -2617,7 +2618,7 @@ static int onenand_block_markbad(struct }onenand_get_device (mtd,FL_WRITING ); - ret =mtd_block_markbad (mtd, ofs); + ret = this->block_markbad (mtd, ofs);onenand_release_device (mtd);return ret; }
Patches currently in stable-queue which might be from [email protected] are
queue-3.14/mtd-onenand-fix-deadlock-in-onenand_block_markbad.patch