]> 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>
Wed, 2 May 2018 14:53:42 +0000 (07:53 -0700)
commitfc1584670f289d3cc9e2c17c0d6ba3a24ae5b785
tree37e523b4f0c941d1995ee70033819a049fa7e50d
parentd519eb768c1e17f1494d539eafdc6c4f0ba318b2
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