]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:36:38 +0000 (21:36 -0400)
commit52b254df5975fc40acdbfc4bdf4206c39bd0e7ea
tree53c3a20d3e8075c5d15f9ddb9e4d75bd93ff2638
parent0f80b5548fa38ca8b39c87b6d63d848d6628690a
mtd: cfi: cmdset_0001: Do not allow read/write to suspend erase block.

[ Upstream commit 6510bbc88e3258631831ade49033537081950605 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
drivers/mtd/chips/cfi_cmdset_0001.c
include/linux/mtd/flashchip.h