mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-31 04:13:37 +00:00
[USBSTOR]
- Add forgotten storage of the LUN in the PDO extension which not only broke units beyond LUN 0 but also caused a BSOD due to reporting duplicate devices to the PnP manager - Thanks to tower for reporting svn path=/trunk/; revision=56406
This commit is contained in:
@@ -264,7 +264,7 @@ USBSTOR_FdoHandleStartDevice(
|
||||
//
|
||||
// create pdo
|
||||
//
|
||||
Status = USBSTOR_CreatePDO(DeviceObject, &DeviceExtension->ChildPDO[Index]);
|
||||
Status = USBSTOR_CreatePDO(DeviceObject, Index, &DeviceExtension->ChildPDO[Index]);
|
||||
|
||||
//
|
||||
// check for failure
|
||||
|
||||
@@ -1256,6 +1256,7 @@ USBSTOR_SendFormatCapacityIrp(
|
||||
NTSTATUS
|
||||
USBSTOR_CreatePDO(
|
||||
IN PDEVICE_OBJECT DeviceObject,
|
||||
IN UCHAR LUN,
|
||||
OUT PDEVICE_OBJECT *ChildDeviceObject)
|
||||
{
|
||||
PDEVICE_OBJECT PDO;
|
||||
@@ -1293,6 +1294,7 @@ USBSTOR_CreatePDO(
|
||||
PDODeviceExtension->LowerDeviceObject = DeviceObject;
|
||||
PDODeviceExtension->PDODeviceObject = ChildDeviceObject;
|
||||
PDODeviceExtension->Self = PDO;
|
||||
PDODeviceExtension->LUN = LUN;
|
||||
|
||||
//
|
||||
// set device flags
|
||||
|
||||
@@ -364,6 +364,7 @@ USBSTOR_PdoHandlePnp(
|
||||
NTSTATUS
|
||||
USBSTOR_CreatePDO(
|
||||
IN PDEVICE_OBJECT DeviceObject,
|
||||
IN UCHAR LUN,
|
||||
OUT PDEVICE_OBJECT *ChildDeviceObject);
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user