We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94e61c3 commit 493f2acCopy full SHA for 493f2ac
drivers/usb/usbstor/fdo.c
@@ -61,7 +61,7 @@ USBSTOR_FdoHandleDeviceRelations(
61
}
62
63
64
- 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);
65
if (!DeviceRelations)
66
{
67
Irp->IoStatus.Information = 0;
@@ -70,6 +70,8 @@ USBSTOR_FdoHandleDeviceRelations(
70
return STATUS_INSUFFICIENT_RESOURCES;
71
72
73
+ DeviceRelations->Count = 0;
74
+
75
// add device objects
76
for (Index = 0; Index < max(DeviceExtension->MaxLUN, 1); Index++)
77
0 commit comments