From a4479b14cd27c77f8686e6794ce1be5c839527d0 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 3 Dec 2011 22:46:15 +0000 Subject: [PATCH] [NTOSKRNL] - Gracefully fail when there is no more pool space left - Mm already prints plenty of warnings in this case svn path=/trunk/; revision=54577 --- reactos/ntoskrnl/mm/ARM3/expool.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reactos/ntoskrnl/mm/ARM3/expool.c b/reactos/ntoskrnl/mm/ARM3/expool.c index fac2c4d8798..51aedd94834 100644 --- a/reactos/ntoskrnl/mm/ARM3/expool.c +++ b/reactos/ntoskrnl/mm/ARM3/expool.c @@ -686,7 +686,9 @@ ExAllocatePoolWithTag(IN POOL_TYPE PoolType, // There were no free entries left, so we have to allocate a new fresh page // Entry = MiAllocatePoolPages(PoolType, PAGE_SIZE); - ASSERT(Entry != NULL); + if (Entry == NULL) + return NULL; + Entry->Ulong1 = 0; Entry->BlockSize = i; Entry->PoolType = PoolType + 1;