Hi Johan,

On 6/30/26 3:32 PM, Johan Jonker wrote:
The oobfree[0].length calculation depends on the

Not only that, but also ecc->layout->eccpos[i] just above.

rknand->metadata_size value, but this is calculated
after the function rk_nfc_ecc_init is called. Move this
calculation to a location before it's value is required.

Fixes: 1b3fcb3c0456 ("mtd: nand: raw: rockchip_nfc: add layout structure")

Reviewed-by: Quentin Schulz <[email protected]>

Thanks!
Quentin

Reply via email to