mtd: rawnand: meson: fix bit map use in meson_nfc_ecc_correct()
stable inclusion from stable-v5.10.150 commit 7bd5f3b4a805036892da047010b43d067603b139 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0XA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7bd5f3b4a805036892da047010b43d067603b139 -------------------------------- [ Upstream commit 3e4ad321 ] 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: 8fae856c ("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> Signed-off-by:
Jialin Zhang <zhangjialin11@huawei.com>
Loading
Please sign in to comment