mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[USBSTOR] Fix wrong function name in a9b97ae
This commit is contained in:
parent
94e61c3080
commit
493f2ace11
1 changed files with 3 additions and 1 deletions
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue