mtd: rawnand: gpmi: fix dst bit offset when extracting raw payload
authorSean Nyekjaer <sean@geanix.com>
Mon, 21 Dec 2020 10:00:13 +0000 (11:00 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 4 Jan 2021 11:08:32 +0000 (12:08 +0100)
commit4883a60c17eda6bf52d1c817ee7ead65b4a02da2
tree9c638591a95c6b5ba3514cd9ab869df355def902
parent5c8fe583cce542aa0b84adc939ce85293de36e5e
mtd: rawnand: gpmi: fix dst bit offset when extracting raw payload

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@vger.kernel.org
Reported-by: Martin Hundebøll <martin@geanix.com>
Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20201221100013.2715675-1-sean@geanix.com
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c