mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:26:17 +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) {
|
if (Release) {
|
||||||
|
|
||||||
ObDereferenceObject(PortDeviceObject);
|
//ObDereferenceObject(PortDeviceObject);
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4850,6 +4850,7 @@ Return Value:
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
ObDereferenceObject(srb.DataBuffer);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Return the new port device object pointer.
|
// Return the new port device object pointer.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue