mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 02:25:40 +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);
|
KeReleaseGuardedMutex(&PiNotifyTargetDeviceLock);
|
||||||
|
if (notificationStruct != CustomNotification)
|
||||||
ExFreePoolWithTag(notificationStruct, TAG_PNP_NOTIFY);
|
ExFreePoolWithTag(notificationStruct, TAG_PNP_NOTIFY);
|
||||||
ObDereferenceObject(DeviceObject);
|
ObDereferenceObject(DeviceObject);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue