diff options
author | Johan Jonker <jbx6244@gmail.com> | 2023-07-14 17:21:01 +0200 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2023-07-15 18:18:03 +0200 |
commit | d0ca3b92b7a6f42841ea9da8492aaf649db79780 (patch) | |
tree | c6d602ae33fe97118fe25512d266e8cd1ba4c6dc /lib/lockref.c | |
parent | 7e6b04f9238eab0f684fafd158c1f32ea65b9eaa (diff) | |
download | linux-stable-d0ca3b92b7a6f42841ea9da8492aaf649db79780.tar.gz linux-stable-d0ca3b92b7a6f42841ea9da8492aaf649db79780.tar.bz2 linux-stable-d0ca3b92b7a6f42841ea9da8492aaf649db79780.zip |
mtd: rawnand: rockchip: fix oobfree offset and description
Rockchip boot blocks are written per 4 x 512 byte sectors per page.
Each page with boot blocks must have a page address (PA) pointer in OOB
to the next page.
The currently advertised free OOB area starts at offset 6, like
if 4 PA bytes were located right after the BBM. This is wrong as the
PA bytes are located right before the ECC bytes.
Fix the layout by allowing access to all bytes between the BBM and the
PA bytes instead of reserving 4 bytes right after the BBM.
This change breaks existing jffs2 users.
Fixes: 058e0e847d54 ("mtd: rawnand: rockchip: NFC driver for RK3308, RK2928 and others")
Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/d202f12d-188c-20e8-f2c2-9cc874ad4d22@gmail.com
Diffstat (limited to 'lib/lockref.c')
0 files changed, 0 insertions, 0 deletions