]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 14 Aug 2018 10:24:11 +0000 (12:24 +0200)
commitb06330e1904602ea64b19681e845a58a0f32756e
treef2b5bcd1fa710e9c80ec76b1de6a252b6eef6871
parent3dbe6e68a13c90eba3da44da711073d0f840a66a
mtd: cfi: cmdset_0001: Do not allow read/write to suspend erase block.

BugLink: http://bugs.launchpad.net/bugs/1778265
commit 6510bbc88e3258631831ade49033537081950605 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.

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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/mtd/chips/cfi_cmdset_0001.c
include/linux/mtd/flashchip.h