]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: sunxi: Fix the size of the last OOB region
authorSamuel Holland <samuel@sholland.org>
Thu, 29 Dec 2022 18:15:24 +0000 (12:15 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 15:43:50 +0000 (16:43 +0100)
commite3faf74ffcee1cb7b5bac6ffa71c7aabd1631f5d
treef6886c3cdeabebda739f274b1660fd1d1adca8c6
parent6032cc0aebdd59fc4b2dc2c110c5e2d84bfb14c6
mtd: rawnand: sunxi: Fix the size of the last OOB region

[ Upstream commit 34569d869532b54d6e360d224a0254dcdd6a1785 ]

The previous code assigned to the wrong structure member.

Fixes: 69a793edc2f1 ("mtd: nand: sunxi: switch to mtd_ooblayout_ops")
Signed-off-by: Samuel Holland <samuel@sholland.org>
Acked-By: Dhruva Gole <d-gole@ti.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20221229181526.53766-6-samuel@sholland.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mtd/nand/raw/sunxi_nand.c