X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FBus%2FPci%2FEhciPei%2FEhciSched.c;h=6b19362699b10619b8cbcb0fc34a02d386d5cbb3;hp=606a53db1da1fe21fbdf43676ec1e4b0ab67d527;hb=a89b923ea90ed178f74df42ae344cc0a3b24380b;hpb=8d92f819f5a153c1cda5d2978e6434b53bd092a4 diff --git a/MdeModulePkg/Bus/Pci/EhciPei/EhciSched.c b/MdeModulePkg/Bus/Pci/EhciPei/EhciSched.c index 606a53db1d..6b19362699 100644 --- a/MdeModulePkg/Bus/Pci/EhciPei/EhciSched.c +++ b/MdeModulePkg/Bus/Pci/EhciPei/EhciSched.c @@ -134,7 +134,7 @@ EhcInitSched ( &Map ); - if (EFI_ERROR (Status)) { + if (EFI_ERROR (Status) || (Buf == NULL)) { return EFI_OUT_OF_RESOURCES; }