- Check that the device number is not invalid

- ACPI now crashes later on VMware

svn path=/trunk/; revision=46240
This commit is contained in:
Cameron Gutman 2010-03-17 07:16:08 +00:00
parent fa481444a7
commit 82b8272584

View file

@ -466,7 +466,7 @@ AcpiOsReadPciConfiguration (
NTSTATUS Status;
PCI_SLOT_NUMBER slot;
if (Register == 0)
if (Register == 0 || PciId->Device == 0)
return AE_ERROR;
slot.u.AsULONG = 0;
@ -498,7 +498,7 @@ AcpiOsWritePciConfiguration (
ULONG buf = Value;
PCI_SLOT_NUMBER slot;
if (Register == 0)
if (Register == 0 || PciId->Device == 0)
return AE_ERROR;
slot.u.AsULONG = 0;