diff options
author | Xiaolei Li <xiaolei.li@mediatek.com> | 2019-04-29 11:28:34 +0800 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-04-29 08:39:15 +0200 |
commit | 49e6cb7b62c5d7cd5c0a5084c91a84cd9fa8e0fe (patch) | |
tree | 193c597023ad85cf871b2786b756d93bf2459a58 /tests/unittests/sysfs_mock/class/mtd/mtd0/size | |
parent | 2524ec6609462419d2bbb1ba0cf00e63b62d05c0 (diff) |
mtd-tests: nandbiterrs: Fix issue that just insert error at bit 7
The function insert_biterror should be designed to insert error at
the first '1' bit starting at offset byte.
But now, only bit 7 of each byte is checked, because checking mask
is always 0x80.
So, do right shift for checking mask after each checking to check
the whole 8 bits of each bytes.
Signed-off-by: Xiaolei Li <xiaolei.li@mediatek.com>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/unittests/sysfs_mock/class/mtd/mtd0/size')
0 files changed, 0 insertions, 0 deletions