[PATCH] mtd: rawnand: gpmi: fix dst bit offset when extracting raw payload

Miquel Raynal miquel.raynal at bootlin.com
Mon Jan 4 05:35:58 EST 2021


On Mon, 2020-12-21 at 10:00:13 UTC, Sean Nyekjaer wrote:
> Re-add the multiply by 8 to "step * eccsize" to correct the destination bit offset
> when extracting the data payload in gpmi_ecc_read_page_raw().
> 
> Fixes: e5e5631cc889 ("mtd: rawnand: gpmi: Use nand_extract_bits()")
> Cc: stable at vger.kernel.org
> Reported-by: Martin Hundebøll <martin at geanix.com>
> Signed-off-by: Sean Nyekjaer <sean at geanix.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel



More information about the linux-mtd mailing list