projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
917fbfd
)
[NTOS]: Fix kernel memory corruption when dequeuing a PnP event
author
Cameron Gutman
<aicommander@gmail.com>
Mon, 2 Aug 2010 21:22:34 +0000
(21:22 +0000)
committer
Cameron Gutman
<aicommander@gmail.com>
Mon, 2 Aug 2010 21:22:34 +0000
(21:22 +0000)
svn path=/trunk/; revision=48422
reactos/ntoskrnl/io/pnpmgr/plugplay.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/io/pnpmgr/plugplay.c
b/reactos/ntoskrnl/io/pnpmgr/plugplay.c
index
492d4a1
..
4a2259e
100644
(file)
--- a/
reactos/ntoskrnl/io/pnpmgr/plugplay.c
+++ b/
reactos/ntoskrnl/io/pnpmgr/plugplay.c
@@
-98,7
+98,7
@@
IopRemovePlugPlayEvent(VOID)
/* Remove a pnp event entry from the tail of the queue */
if (!IsListEmpty(&IopPnpEventQueueHead))
{
- ExFreePool(
RemoveTailList(&IopPnpEventQueueHead
));
+ ExFreePool(
CONTAINING_RECORD(RemoveTailList(&IopPnpEventQueueHead), PNP_EVENT_ENTRY, ListEntry)
));
}
/* Signal the next pnp event in the queue */