[PATCH v2 03/11] efi_loader: smbiosdump: fix starts_with() returning NULL
Simon Glass
sjg at chromium.org
Thu Jun 25 10:52:05 CEST 2026
On 2026-06-21T08:19:04, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
> efi_loader: smbiosdump: fix starts_with() returning NULL
>
> starts_with() is declared as returning bool, but the null-argument
> guard returned NULL (a pointer cast to bool) instead of false.
> While harmless on most platforms where NULL and false both have
> value zero, it is technically incorrect.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
>
> lib/efi_loader/smbiosdump.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list