mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[NTOS:PNP] PiNotifyTargetDeviceChange: Don't free incorrect buffer
This commit is contained in:
parent
77af265315
commit
1d18b12ff7
1 changed files with 2 additions and 1 deletions
|
@ -315,6 +315,7 @@ PiNotifyTargetDeviceChange(
|
|||
}
|
||||
|
||||
KeReleaseGuardedMutex(&PiNotifyTargetDeviceLock);
|
||||
if (notificationStruct != CustomNotification)
|
||||
ExFreePoolWithTag(notificationStruct, TAG_PNP_NOTIFY);
|
||||
ObDereferenceObject(DeviceObject);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue