Commit 4120aa0
committed
mtd: rawnand: Ensure continuous reads are well disabled
The cont_read.ongoing flag should only be enabled at the beginning of a
read operation, and also disabled at its end, so we never end up
triggering nasty side effects outside of this scope. The mtd core being
highly serialized, we should not be bothered by parallel accesses
anyway.
In case we reach the end of a read operation and the boolean was not
properly disabled, it's a bug, but it's totally manageable. So warn, and
then fix the boolean state.
Signed-off-by: Miquel Raynal <[email protected]>
Link: https://lore.kernel.org/linux-mtd/[email protected]1 parent 78ffbef commit 4120aa0
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3728 | 3728 | | |
3729 | 3729 | | |
3730 | 3730 | | |
| 3731 | + | |
| 3732 | + | |
| 3733 | + | |
3731 | 3734 | | |
3732 | 3735 | | |
3733 | 3736 | | |
| |||
0 commit comments