]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mtd: cfi: cmdset_0002: Do not allow read/write to suspend erase block.
authorJoakim Tjernlund <joakim.tjernlund@infinera.com>
Thu, 1 Mar 2018 13:39:41 +0000 (14:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 May 2018 22:13:07 +0000 (15:13 -0700)
commitf48bbbae0421bdf002f3fb565f1308695b2560a6
treead81e2421f4a43b512a80da4dc76a9b969e7999b
parent0d8f3797ed5d7204c0238825fe434a949822c60e
mtd: cfi: cmdset_0002: Do not allow read/write to suspend erase block.

commit 7b70eb14392a7cf505f9b358d06c33b5af73d1e7 upstream.

Currently it is possible to read and/or write to suspend EB's.
Writing /dev/mtdX or /dev/mtdblockX from several processes may
break the flash state machine.

Taken from cfi_cmdset_0001 driver.

Signed-off-by: Joakim Tjernlund <joakim.tjernlund@infinera.com>
Cc: <stable@vger.kernel.org>
Reviewed-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/chips/cfi_cmdset_0002.c