mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
[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 svn path=/trunk/; revision=70310
This commit is contained in:
parent
75fe25183f
commit
b578474474
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue