Merge branch 'staging' of ssh://xenbits.xen.org/home/xen/git/xen into staging

This commit is contained in:
Ian Campbell committed 2014-09-24 10:15:19 +01:00
commit 607a67c7f6
1 file changed
+6 -5
+6 -5
View File
@@ -595,11 +595,12 @@ static void __init setup_efi_pci(void)
struct efi_pci_rom *last = NULL;
status = efi_bs->LocateHandle(ByProtocol, &pci_guid, NULL, &size, NULL);
if ( status == EFI_BUFFER_TOO_SMALL )
status = efi_bs->AllocatePool(EfiLoaderData, size, (void **)&handles);
if ( !EFI_ERROR(status) )
status = efi_bs->LocateHandle(ByProtocol, &pci_guid, NULL, &size,
handles);
if ( status != EFI_BUFFER_TOO_SMALL )
return;
status = efi_bs->AllocatePool(EfiLoaderData, size, (void **)&handles);
if ( EFI_ERROR(status) )
return;
status = efi_bs->LocateHandle(ByProtocol, &pci_guid, NULL, &size, handles);
if ( EFI_ERROR(status) )
size = 0;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.