diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-07-28 10:12:12 +0300 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2022-09-21 10:38:46 +0200 |
commit | 3e4ad3212cf22687410b1e8f4e68feec50646113 (patch) | |
tree | 300e5d972b4d3af11062e159b71d25f64dff3164 /drivers/mtd/parsers | |
parent | 37ea9f165ed4a437d6b3302e76e2e2ab0804b86c (diff) | |
download | linux-stable-3e4ad3212cf22687410b1e8f4e68feec50646113.tar.gz linux-stable-3e4ad3212cf22687410b1e8f4e68feec50646113.tar.bz2 linux-stable-3e4ad3212cf22687410b1e8f4e68feec50646113.zip |
mtd: rawnand: meson: fix bit map use in meson_nfc_ecc_correct()
The meson_nfc_ecc_correct() function accidentally does a right shift
instead of a left shift so it only works for BIT(0). Also use
BIT_ULL() because "correct_bitmap" is a u64 and we want to avoid
shift wrapping bugs.
Fixes: 8fae856c5350 ("mtd: rawnand: meson: add support for Amlogic NAND flash controller")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Liang Yang <liang.yang@amlogic.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/YuI2zF1hP65+LE7r@kili
Diffstat (limited to 'drivers/mtd/parsers')
0 files changed, 0 insertions, 0 deletions