[SCSIPORT]

- Fix a regression from r56863. New logic is: the requested data size is sizeof(ULONG), so if the result read is less than that - continue to the next slot. Thanks to SomeGuy for pointing out the problem.
See issue #7147 for more details.

svn path=/trunk/; revision=56907
This commit is contained in:
Aleksey Bragin 2012-07-17 10:31:03 +00:00
parent 048094c59e
commit 4c86cb1642

View file

@ -2351,7 +2351,7 @@ SpiGetPciConfigData(IN PDRIVER_OBJECT DriverObject,
return FALSE;
/* Check if result is PCI_INVALID_VENDORID or too small */
if ((DataSize < (ULONG)PCI_COMMON_HDR_LENGTH) ||
if ((DataSize < sizeof(ULONG)) ||
(PciConfig.VendorID == PCI_INVALID_VENDORID))
{
/* Continue to try the next function */