diff options
Diffstat (limited to 'MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c')
-rw-r--r-- | MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c b/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c index 3161ede949..6cf4aefea6 100644 --- a/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c +++ b/MdeModulePkg/Bus/Pci/EhciDxe/Ehci.c @@ -969,7 +969,8 @@ EhcAsyncInterruptTransfer ( //
// Validate parameters
//
- if (!EHCI_IS_DATAIN (EndPointAddress)) {
+ if (!(EndPointAddress >= 0x01 && EndPointAddress <= 0x0F)
+ && !(EndPointAddress >= 0x81 && EndPointAddress <= 0x8F)) {
return EFI_INVALID_PARAMETER;
}
@@ -1118,7 +1119,8 @@ EhcSyncInterruptTransfer ( return EFI_INVALID_PARAMETER;
}
- if (!EHCI_IS_DATAIN (EndPointAddress)) {
+ if (!(EndPointAddress >= 0x01 && EndPointAddress <= 0x0F)
+ && !(EndPointAddress >= 0x81 && EndPointAddress <= 0x8F)) {
return EFI_INVALID_PARAMETER;
}
|