diff options
| author | 2026-08-11 00:01:59 -0600 | |
|---|---|---|
| committer | 2026-09-04 20:05:57 +0200 | |
| commit | 8696502b0aa96bcbb1f1e78ae117726378823ae8 (patch) | |
| tree | 50f372205a14e1bfbd62fb02d069863cd36ad61e /scripts/Makefile.thinlto | |
| parent | Linux 7.3-rc1 (diff) | |
mtd: rawnand: sunxi: propagate user-data allocation errors
sunxi_nfc_maximize_user_data() returns -ENOMEM when its per-step
length array cannot be allocated, but the caller ignores that error.
The NULL array then makes sunxi_nfc_user_data_sz() report the fixed
four-byte fallback, which is not the layout that the variable-length
setup calculated.
Return the setup error so an allocation failure cannot silently select
and validate a different OOB layout.
Fixes: 54dcd6aa69db ("mtd: rawnand: sunxi: introduce maximize variable user data length")
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
