- 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

svn path=/trunk/; revision=70310
This commit is contained in:
Thomas Faber 2015-12-08 17:46:33 +00:00
parent 75fe25183f
commit b578474474

View file

@ -4826,7 +4826,7 @@ Return Value:
if (Release) {
ObDereferenceObject(PortDeviceObject);
//ObDereferenceObject(PortDeviceObject);
return STATUS_SUCCESS;
}
@ -4850,6 +4850,7 @@ Return Value:
return status;
}
ObDereferenceObject(srb.DataBuffer);
//
// Return the new port device object pointer.