projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85e8177
)
mtd: rawnand: sunxi: Fix the size of the last OOB region
author
Samuel Holland
<samuel@sholland.org>
Thu, 29 Dec 2022 18:15:24 +0000
(12:15 -0600)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Mon, 2 Jan 2023 11:14:22 +0000
(12:14 +0100)
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
drivers/mtd/nand/raw/sunxi_nand.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/raw/sunxi_nand.c
b/drivers/mtd/nand/raw/sunxi_nand.c
index 1bddeb1be66f8215d0ec724e70541f16bcc94d80..e673ac46f2e885dc8fc2cead1c7e180cb66e8737 100644
(file)
--- a/
drivers/mtd/nand/raw/sunxi_nand.c
+++ b/
drivers/mtd/nand/raw/sunxi_nand.c
@@
-1609,7
+1609,7
@@
static int sunxi_nand_ooblayout_free(struct mtd_info *mtd, int section,
if (section < ecc->steps)
oobregion->length = 4;
else
- oobregion->
offset
= mtd->oobsize - oobregion->offset;
+ oobregion->
length
= mtd->oobsize - oobregion->offset;
return 0;
}