Don't push an already freed irp to the list (in IoFreeIrp).

svn path=/trunk/; revision=15311
This commit is contained in:
Hartmut Birr 2005-05-15 13:59:57 +00:00
parent f6b3f734ac
commit 523c60c5d5

View file

@ -1282,12 +1282,16 @@ IoFreeIrp(PIRP Irp)
/* All lists failed, use the pool */
List->L.FreeMisses++;
ExFreePool(Irp);
Irp = NULL;
}
}
/* The free was within dhe Depth */
if (Irp)
{
InterlockedPushEntrySList(&List->L.ListHead, (PSINGLE_LIST_ENTRY)Irp);
}
}
DPRINT("Free done\n");
}