mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
[NTOSKRNL] On open, verify and validate the hint device object if any
This commit is contained in:
parent
779d87b483
commit
0b713d4fa0
1 changed files with 8 additions and 2 deletions
|
@ -673,10 +673,16 @@ IopParseDevice(IN PVOID ParseObject,
|
|||
}
|
||||
}
|
||||
|
||||
/* If we have a top level device hint, verify it */
|
||||
if (OpenPacket->InternalFlags & IOP_USE_TOP_LEVEL_DEVICE_HINT)
|
||||
{
|
||||
// FIXME: Verify our device object is good to use
|
||||
ASSERT(DirectOpen == FALSE);
|
||||
Status = IopCheckTopDeviceHint(&DeviceObject, OpenPacket, DirectOpen);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
IopDereferenceDeviceObject(OriginalDeviceObject, FALSE);
|
||||
if (Vpb) IopDereferenceVpbAndFree(Vpb);
|
||||
return Status;
|
||||
}
|
||||
}
|
||||
|
||||
/* If we traversed a mount point, reset the information */
|
||||
|
|
Loading…
Reference in a new issue