]> 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)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:36:38 +0000 (21:36 -0400)
commitcdf78b78f2a059c4063dd16407e0d3703530ea53
treeda56331478d5a22f3a1bdcf39bccbeb6298b61ab
parent5c69c2561c93dabb2c9265eb0798e08e2c99cf2e
mtd: cfi: cmdset_0002: Do not allow read/write to suspend erase block.

[ Upstream commit 7b70eb14392a7cf505f9b358d06c33b5af73d1e7 ]

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: Sasha Levin <alexander.levin@microsoft.com>
drivers/mtd/chips/cfi_cmdset_0002.c