mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:25:58 +00:00
[NTOS]: Fix kernel memory corruption when dequeuing a PnP event
svn path=/trunk/; revision=48422
This commit is contained in:
parent
917fbfd1ea
commit
db0f412b3e
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ IopRemovePlugPlayEvent(VOID)
|
||||||
/* Remove a pnp event entry from the tail of the queue */
|
/* Remove a pnp event entry from the tail of the queue */
|
||||||
if (!IsListEmpty(&IopPnpEventQueueHead))
|
if (!IsListEmpty(&IopPnpEventQueueHead))
|
||||||
{
|
{
|
||||||
ExFreePool(RemoveTailList(&IopPnpEventQueueHead));
|
ExFreePool(CONTAINING_RECORD(RemoveTailList(&IopPnpEventQueueHead), PNP_EVENT_ENTRY, ListEntry)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Signal the next pnp event in the queue */
|
/* Signal the next pnp event in the queue */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue