Author: tfaber
Date: Tue Dec 8 17:46:33 2015
New Revision: 70310
URL: http://svn.reactos.org/svn/reactos?rev=70310&view=rev
Log:
[CLASS2]
- Don't take a reference on the device object in ScsiClassClaimDevice since it's not going to be released before device removal. Inspired by classpnp. Fixes ejecting mass storage devices.
CORE-8911 #resolve
Modified:
trunk/reactos/drivers/storage/class/class2/class2.c
Modified: trunk/reactos/drivers/storage/class/class2/class2.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/class/clas…
==============================================================================
--- trunk/reactos/drivers/storage/class/class2/class2.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/storage/class/class2/class2.c [iso-8859-1] Tue Dec 8 17:46:33 2015
@@ -4826,7 +4826,7 @@
if (Release) {
- ObDereferenceObject(PortDeviceObject);
+ //ObDereferenceObject(PortDeviceObject);
return STATUS_SUCCESS;
}
@@ -4850,6 +4850,7 @@
return status;
}
+ ObDereferenceObject(srb.DataBuffer);
//
// Return the new port device object pointer.