Skip to content

Commit 493f2ac

Browse files
committed
[USBSTOR] Fix wrong function name in a9b97ae
1 parent 94e61c3 commit 493f2ac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/usb/usbstor/fdo.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ USBSTOR_FdoHandleDeviceRelations(
6161
}
6262
}
6363

64-
DeviceRelations = ExFreePoolWithTag(PagedPool, sizeof(DEVICE_RELATIONS) + (DeviceCount-1) * sizeof(PDEVICE_OBJECT), USB_STOR_TAG);
64+
DeviceRelations = ExAllocatePoolWithTag(PagedPool, sizeof(DEVICE_RELATIONS) + (DeviceCount - 1) * sizeof(PDEVICE_OBJECT), USB_STOR_TAG);
6565
if (!DeviceRelations)
6666
{
6767
Irp->IoStatus.Information = 0;
@@ -70,6 +70,8 @@ USBSTOR_FdoHandleDeviceRelations(
7070
return STATUS_INSUFFICIENT_RESOURCES;
7171
}
7272

73+
DeviceRelations->Count = 0;
74+
7375
// add device objects
7476
for (Index = 0; Index < max(DeviceExtension->MaxLUN, 1); Index++)
7577
{

0 commit comments

Comments
 (0)