Index: ntoskrnl/mm/ARM3/expool.c =================================================================== --- ntoskrnl/mm/ARM3/expool.c (revision 56732) +++ ntoskrnl/mm/ARM3/expool.c (working copy) @@ -2151,6 +2151,15 @@ Entry->PoolType - 1); // + // Check block tag + // + if (TagToFree && TagToFree != Entry->PoolTag) + { + DPRINT1("Freeing pool - invalid tag specified: %.4s != %.4s\n", (char*)&TagToFree, (char*)&Entry->PoolTag); + KeBugCheckEx(BAD_POOL_CALLER, 0x0A, (ULONG_PTR)P, Entry->PoolTag, TagToFree); + } + + // // Is this allocation small enough to have come from a lookaside list? // if (BlockSize <= MAXIMUM_PROCESSORS) @@ -2201,15 +2210,6 @@ OldIrql = ExLockPool(PoolDesc); // - // Check block tag - // - if (TagToFree && TagToFree != Entry->PoolTag) - { - DPRINT1("Freeing pool - invalid tag specified: %.4s != %.4s\n", (char*)&TagToFree, (char*)&Entry->PoolTag); - KeBugCheckEx(BAD_POOL_CALLER, 0x0A, (ULONG_PTR)P, Entry->PoolTag, TagToFree); - } - - // // Check if the next allocation is at the end of the page // ExpCheckPoolBlocks(Entry);