[PATCH 1/1] boot: fix vbe_find_first_device()

Simon Glass sjg at chromium.org
Sat Aug 27 03:59:23 CEST 2022


On Tue, 23 Aug 2022 at 02:25, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> uclass_find_first_device() may return NULL if no device for the uclass
> exists. Handle this case gracefully.
>
> Addresses-Coverity: CID 356244 ("Null pointer dereferences (FORWARD_NULL)")
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
>  boot/vbe.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list