Fixed incorrect assertion in IoAllocateController: assert_irql() seems to check for IRQL <= current IRQL, but this function must be called with current IRQL == DISPATCH_LEVEL, not <= DISPATCH_LEVEL.

svn path=/trunk/; revision=1734
This commit is contained in:
Phillip Susi 2001-03-26 05:03:54 +00:00
parent cf4a06ff33
commit b1601c09d8

View file

@ -1,4 +1,4 @@
/* $Id: cntrller.c,v 1.5 2001/03/07 16:48:41 dwelch Exp $
/* $Id: cntrller.c,v 1.6 2001/03/26 05:03:54 phreak Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -59,7 +59,7 @@ IoAllocateController(PCONTROLLER_OBJECT ControllerObject,
PCONTROLLER_QUEUE_ENTRY entry;
IO_ALLOCATION_ACTION Result;
assert_irql(DISPATCH_LEVEL);
assert(KeGetCurrentIrql() == DISPATCH_LEVEL);
entry =
ExAllocatePoolWithTag(NonPagedPool, sizeof(CONTROLLER_QUEUE_ENTRY),