[USBSTOR] Fix wrong function name in a9b97ae

This commit is contained in:
Victor Perevertkin 2020-06-13 03:07:00 +03:00
parent 94e61c3080
commit 493f2ace11
No known key found for this signature in database
GPG key ID: C750B7222E9C7830

View file

@ -61,7 +61,7 @@ USBSTOR_FdoHandleDeviceRelations(
}
}
DeviceRelations = ExFreePoolWithTag(PagedPool, sizeof(DEVICE_RELATIONS) + (DeviceCount-1) * sizeof(PDEVICE_OBJECT), USB_STOR_TAG);
DeviceRelations = ExAllocatePoolWithTag(PagedPool, sizeof(DEVICE_RELATIONS) + (DeviceCount - 1) * sizeof(PDEVICE_OBJECT), USB_STOR_TAG);
if (!DeviceRelations)
{
Irp->IoStatus.Information = 0;
@ -70,6 +70,8 @@ USBSTOR_FdoHandleDeviceRelations(
return STATUS_INSUFFICIENT_RESOURCES;
}
DeviceRelations->Count = 0;
// add device objects
for (Index = 0; Index < max(DeviceExtension->MaxLUN, 1); Index++)
{