Re: [PATCH 10/11] nvmem: u-boot-env: propagate cell registration errors

From: Bartosz Golaszewski

Date: Thu Nov 19 2026 - 09:01:52 EST


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@xxxxxxxxx>
> ---

Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>