mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
[NTOSKRNL]
- Fix a major bug in the failure path of IoCreateDevice that would cause corruption of kernel memory if IopCreateVpb failed svn path=/trunk/; revision=56014
This commit is contained in:
parent
f8ada9b34d
commit
28a5fcc313
1 changed files with 2 additions and 2 deletions
|
@ -978,8 +978,8 @@ IoCreateDevice(IN PDRIVER_OBJECT DriverObject,
|
|||
Status = IopCreateVpb(CreatedDeviceObject);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
/* Reference the device object and fail */
|
||||
ObDereferenceObject(DeviceObject);
|
||||
/* Dereference the device object and fail */
|
||||
ObDereferenceObject(CreatedDeviceObject);
|
||||
return Status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue