diff options
author | Vipin Kumar <[email protected]> | 2012-03-14 11:47:11 +0530 |
---|---|---|
committer | David Woodhouse <[email protected]> | 2012-03-27 00:58:43 +0100 |
commit | b533f8d84f4f0807bf1bcf52017c6a267c8c4405 (patch) | |
tree | 16aeaba31da1e7a68e956f48e9b24b765f341a29 /net/lapb/lapb_timer.c | |
parent | aea686b47c0cf97e0c6941799b523b6df87fc234 (diff) |
mtd: nand/fsmc: Flip the bit only if the error index is < 4096
ECC can correct up to 8 bits in 512 bytes data + 13 bytes ecc. This means that
the algorithm can correct a max of 8 bits in 4200 bits ie the error indices can
be from 0 to 4199. Of these 0 to 4095 are for data and 4096 to 4199 for ecc.
The driver flips the bit only if the index is <= 4096. This is a bug since the
data bits are only from 0 to 4095.
This patch modifies the check as < 4096
Signed-off-by: Vipin Kumar <[email protected]>
Signed-off-by: Artem Bityutskiy <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions