]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: cfi: cmdset_0001: Do not allow read/write to suspend erase block.
authorJoakim Tjernlund <joakim.tjernlund@transmode.se>
Thu, 1 Mar 2018 13:39:39 +0000 (14:39 +0100)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Tue, 24 Apr 2018 15:41:18 +0000 (17:41 +0200)
commit544e55d96016b11201e59ab3957766bd1fc9ce04
tree0d8762148a39f335e76992d0e937bafc657e5b69
parent7314137a6479a78af0624d270ea6a55af1e97098
mtd: cfi: cmdset_0001: Do not allow read/write to suspend erase block.

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.

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>
drivers/mtd/chips/cfi_cmdset_0001.c
include/linux/mtd/flashchip.h