mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +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,7 +315,8 @@ PiNotifyTargetDeviceChange(
|
|||
}
|
||||
|
||||
KeReleaseGuardedMutex(&PiNotifyTargetDeviceLock);
|
||||
ExFreePoolWithTag(notificationStruct, TAG_PNP_NOTIFY);
|
||||
if (notificationStruct != CustomNotification)
|
||||
ExFreePoolWithTag(notificationStruct, TAG_PNP_NOTIFY);
|
||||
ObDereferenceObject(DeviceObject);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue