Author: tfaber
Date: Sun Feb 8 14:15:45 2015
New Revision: 66207
URL:
http://svn.reactos.org/svn/reactos?rev=66207&view=rev
Log:
[NTOS]
- Avoid removing list entry if the list is empty in IopUnQueueIrpFromThread
CORE-8419
Modified:
trunk/reactos/ntoskrnl/include/internal/io_x.h
Modified: trunk/reactos/ntoskrnl/include/internal/io_x.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/io_x.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/io_x.h [iso-8859-1] Sun Feb 8 14:15:45 2015
@@ -51,6 +51,8 @@
IopUnQueueIrpFromThread(IN PIRP Irp)
{
/* Remove it from the list and reset it */
+ if (IsListEmpty(&Irp->ThreadListEntry))
+ return;
RemoveEntryList(&Irp->ThreadListEntry);
InitializeListHead(&Irp->ThreadListEntry);
}