diff options
author | Zhaoxiu Zeng <zhaoxiu.zeng@gmail.com> | 2016-04-12 10:30:35 +0300 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-04-19 23:04:53 +0300 |
commit | 03a97550941d17c7d5b621afde5945bbc0da6546 (patch) | |
tree | ddc3880ce6dfb086056a73cd02d3125a0df77495 /drivers/mtd/nand/lpc32xx_mlc.c | |
parent | 7a654172161c8c9c7d59cbd0054d9e63c7411219 (diff) | |
download | linux-03a97550941d17c7d5b621afde5945bbc0da6546.tar.xz |
mtd: nand: s3c2410: fix bug in s3c2410_nand_correct_data()
If there is only one bit difference in the ECC, the function should
return 1.
The result of "diff0 & ~(1<<fls(diff0))" is equal to diff0, so the
function actually returns -1.
Signed-off-by: Zhaoxiu Zeng <zhaoxiu.zeng@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd/nand/lpc32xx_mlc.c')
0 files changed, 0 insertions, 0 deletions