From: Serge Gautherie Date: Tue, 11 Apr 2017 14:50:00 +0200 Subject: [IOMGR] iomdl.c: Set MDL_ALLOCATED_FIXED_SIZE flag at the right place. CORE-13066 Index: reactos/ntoskrnl/io/iomgr/iomdl.c --- a/reactos/ntoskrnl/io/iomgr/iomdl.c +++ b/reactos/ntoskrnl/io/iomgr/iomdl.c @@ -48,7 +48,6 @@ { /* Use an internal fixed MDL size */ Size = (23 * sizeof(PFN_NUMBER)) + sizeof(MDL); - Flags |= MDL_ALLOCATED_FIXED_SIZE; /* Allocate one from the lookaside list */ Mdl = IopAllocateMdlFromLookaside(LookasideMdlList); @@ -61,6 +60,10 @@ Mdl = ExAllocatePoolWithTag(NonPagedPool, Size, TAG_MDL); if (!Mdl) return NULL; } + else + { + Flags |= MDL_ALLOCATED_FIXED_SIZE; + } /* Initialize it */ MmInitializeMdl(Mdl, VirtualAddress, Length);