[PATCH] state: backend_raw: fix ignoring unpack failures

Sascha Hauer sha at pengutronix.de
Mon Oct 4 04:50:13 PDT 2021


On Wed, Aug 25, 2021 at 04:49:04PM +0200, Marco Felsch wrote:
> This is required to inform the state framework that the state variable
> set have changed and we need to write the new variable set. Without this
> fix the new variable set is never written since the state never sets
> dirty=1 and so state_save() will return early without saving the new
> variable set.
> 
> Signed-off-by: Marco Felsch <m.felsch at pengutronix.de>
> ---
> I keeped the continue instead of break out early so the user gets
> informed which variables do not fit.
> 
> Regards,
>   Marco
> 
>  common/state/backend_format_raw.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list