Skip to content
Commit 58a4e237 authored by Mats Kärrman's avatar Mats Kärrman Committed by Artem Bityutskiy
Browse files

UBIFS: correct data corruption range



With power-cut emulation, it is possible that sometimes no data at all is
corrupted and that confusing messages are printed due to errors in the
computation of data corruption range.

[1] The start of the range should be [0..len-1], not [0..len].
[2] The end of the range should always be at least 1 greater than the start.

Signed-off-by: default avatarMats Karrman <mats.karrman@tritech.se>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
parent 7203db97
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment