[PATCH] fixup! bootchooser: implement locking of attempts counter
Sascha Hauer
s.hauer at pengutronix.de
Tue Jun 24 00:19:21 PDT 2025
On Mon, 23 Jun 2025 15:13:06 +0200, Ahmad Fatoum wrote:
> We have two code paths with goto err that don't set ret beforehand with
> the expectation that the default -EINVAL will be used.
>
> ret is now being reused though and thus the -EINVAL is clobbered. In the
> worst case, an error ends up with ERR_PTR(ret) == NULL crashing
> bootchooser -i when a state prefix is set, but no targets are defined.
>
> [...]
Applied, thanks!
[1/1] fixup! bootchooser: implement locking of attempts counter
https://git.pengutronix.de/cgit/barebox/commit/?id=77bd8dac6962 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list