mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 17:01:53 +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…
Add table
Add a link
Reference in a new issue