mirror of
https://github.com/ipxe/ipxe
synced 2025-12-27 18:12:36 +03:00
[efi] Avoid using potentially uninitialised driver name in veto checks
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -518,8 +518,10 @@ static int efi_veto_find ( EFI_HANDLE driver, const char *manufacturer,
|
|||||||
/* Get driver name, if available */
|
/* Get driver name, if available */
|
||||||
if ( wtf.wtf &&
|
if ( wtf.wtf &&
|
||||||
( ( efirc = wtf.wtf->GetDriverName ( wtf.wtf, "eng",
|
( ( efirc = wtf.wtf->GetDriverName ( wtf.wtf, "eng",
|
||||||
&name ) != 0 ) ) ) {
|
&name ) == 0 ) ) ) {
|
||||||
/* Ignore failure; is not required to be present */
|
/* Driver has a name */
|
||||||
|
} else {
|
||||||
|
/* Ignore failure; name is not required to be present */
|
||||||
name = NULL;
|
name = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user