[ros-diffs] [ros-arm-bringup] 41860: Fix a braindead bug that killed my system (512MB) since the loop goes on past 4096 pages if you have enough non paged pool... do you even test this?

ros-arm-bringup at svn.reactos.org ros-arm-bringup at svn.reactos.org
Sat Jul 11 11:36:19 CEST 2009


Author: ros-arm-bringup
Date: Sat Jul 11 13:36:18 2009
New Revision: 41860

URL: http://svn.reactos.org/svn/reactos?rev=41860&view=rev
Log:
Fix a braindead bug that killed my system (512MB) since the loop goes on past 4096 pages if you have enough non paged pool... do you even test this?

Modified:
    trunk/reactos/ntoskrnl/mm/ARM3/init.c

Modified: trunk/reactos/ntoskrnl/mm/ARM3/init.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/ARM3/init.c?rev=41860&r1=41859&r2=41860&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/mm/ARM3/init.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/ARM3/init.c [iso-8859-1] Sat Jul 11 13:36:18 2009
@@ -726,6 +726,7 @@
             {
                 Buffers[i] = MiAllocatePoolPages(NonPagedPool, PAGE_SIZE);
                 if (!Buffers[i]) break;
+                if (i == 4096) break;
                 i++;
             }
             



More information about the Ros-diffs mailing list