Repository navigation
Commit 1de1ad0
mtd: cfi: cmdset_0001: Do not allow read/write to suspend erase block.
commit 6510bbc 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>1 parent 6c677c5 commit 1de1ad0
2 files changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
831 | 831 | | |
832 | 832 | | |
833 | 833 | | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
834 | 838 | | |
835 | 839 | | |
836 | | - | |
| 840 | + | |
837 | 841 | | |
838 | 842 | | |
839 | 843 | | |
840 | 844 | | |
841 | 845 | | |
842 | 846 | | |
843 | | - | |
| 847 | + | |
844 | 848 | | |
845 | 849 | | |
846 | 850 | | |
847 | 851 | | |
848 | | - | |
| 852 | + | |
849 | 853 | | |
850 | 854 | | |
851 | 855 | | |
| |||
1041 | 1045 | | |
1042 | 1046 | | |
1043 | 1047 | | |
1044 | | - | |
1045 | | - | |
| 1048 | + | |
| 1049 | + | |
1046 | 1050 | | |
1047 | 1051 | | |
1048 | 1052 | | |
| |||
1933 | 1937 | | |
1934 | 1938 | | |
1935 | 1939 | | |
| 1940 | + | |
| 1941 | + | |
1936 | 1942 | | |
1937 | 1943 | | |
1938 | 1944 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
0 commit comments