[PATCH 10/11] nvmem: u-boot-env: propagate cell registration errors
Bartosz Golaszewski
brgl at kernel.org
Thu Nov 19 06:01:46 PST 2026
On Tue, Nov 17, 2026 at 12:38:17PM -0700, James Hilliard wrote:
> The environment parser ignores cell registration failures, so allocation
> failures can leave a partially populated layout reported as successfully
> registered. The OF node reference obtained for a rejected cell is also
> leaked.
>
> Return the registration error and release the node reference that was
> not transferred to a cell.
>
> Fixes: 7c8979b42b1a ("nvmem: u-boot-env: use nvmem_add_one_cell() nvmem subsystem helper")
> Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
> ---
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski at oss.qualcomm.com>
More information about the linux-mtd
mailing list