]> git.ipfire.org Git - thirdparty/kernel/stable.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:26:40 +0000 (16:26 +0100)
commit4f59dd7d9756aa3c6d3cd0480918445c920a1866
treedbbeffe057c51ac5d5df26e0e7379f2709b7240e
parent66616eed76dfa6f3e442907760325a023c6da7e2
mtd: rawnand: sunxi: Fix the size of the last OOB region

[ Upstream commit 34569d869532b54d6e360d224a0254dcdd6a1785 ]

The previous code assigned to the wrong structure member.

Fixes: c66811e6d350 ("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/sunxi_nand.c