mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 12:32:47 +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);
|
Status = IopCreateVpb(CreatedDeviceObject);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
/* Reference the device object and fail */
|
/* Dereference the device object and fail */
|
||||||
ObDereferenceObject(DeviceObject);
|
ObDereferenceObject(CreatedDeviceObject);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue