"Das U-Boot" Source Tree
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

bootmeth_efi: Check the filename-allocation in the network path

If the filename cannot be set we should give up. Add the missing error
check.

Signed-off-by: Simon Glass <sjg@chromium.org>

authored by

Simon Glass and committed by
Tom Rini
ea7f88f3 aa0ba7fb

+2
+2
boot/bootmeth_efi.c
··· 252 252 if (!bootfile_name) 253 253 return log_msg_ret("bootfile_name", ret); 254 254 bflow->fname = strdup(bootfile_name); 255 + if (!bflow->fname) 256 + return log_msg_ret("fi0", -ENOMEM); 255 257 256 258 /* do the hideous EFI hack */ 257 259 efi_set_bootdev("Net", "", bflow->fname, map_sysmem(addr, 0),