diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-07-28 10:12:12 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-10-21 12:38:47 +0200 |
commit | 3e7b8e133ac6f9d44d64260a95f5c1d251449ec0 (patch) | |
tree | 45bc78685bd5e7d5977810bf2c765e3536e7964a /include | |
parent | f1a5546f93128ea9f6d339092b88198163460416 (diff) | |
download | linux-stable-3e7b8e133ac6f9d44d64260a95f5c1d251449ec0.tar.gz linux-stable-3e7b8e133ac6f9d44d64260a95f5c1d251449ec0.tar.bz2 linux-stable-3e7b8e133ac6f9d44d64260a95f5c1d251449ec0.zip |
mtd: rawnand: meson: fix bit map use in meson_nfc_ecc_correct()
[ Upstream commit 3e4ad3212cf22687410b1e8f4e68feec50646113 ]
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
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions