- MINIPORT_CONFIGURATION_CONTEXT must be allocated from nonpaged pool as it contains...
authorStefan Ginsberg <stefanginsberg@gmail.com>
Thu, 11 Jun 2009 23:45:59 +0000 (23:45 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Thu, 11 Jun 2009 23:45:59 +0000 (23:45 +0000)
svn path=/trunk/; revision=41387

reactos/drivers/network/ndis/ndis/config.c

index 76db210..be5bd40 100644 (file)
@@ -194,7 +194,7 @@ NdisOpenConfiguration(
         return;
     }
 
         return;
     }
 
-    ConfigurationContext = ExAllocatePool(PagedPool, sizeof(MINIPORT_CONFIGURATION_CONTEXT));
+    ConfigurationContext = ExAllocatePool(NonPagedPool, sizeof(MINIPORT_CONFIGURATION_CONTEXT));
     if(!ConfigurationContext)
     {
         NDIS_DbgPrint(MIN_TRACE,("Insufficient resources.\n"));
     if(!ConfigurationContext)
     {
         NDIS_DbgPrint(MIN_TRACE,("Insufficient resources.\n"));
@@ -268,7 +268,7 @@ NdisOpenProtocolConfiguration(
         return;
     }
 
         return;
     }
 
-    ConfigurationContext = ExAllocatePool(PagedPool, sizeof(MINIPORT_CONFIGURATION_CONTEXT));
+    ConfigurationContext = ExAllocatePool(NonPagedPool, sizeof(MINIPORT_CONFIGURATION_CONTEXT));
     if(!ConfigurationContext)
     {
         NDIS_DbgPrint(MIN_TRACE,("Insufficient resources.\n"));
     if(!ConfigurationContext)
     {
         NDIS_DbgPrint(MIN_TRACE,("Insufficient resources.\n"));
@@ -846,7 +846,7 @@ NdisOpenConfigurationKeyByIndex(
         return;
     }
 
         return;
     }
 
-    ConfigurationContext = ExAllocatePool(PagedPool, sizeof(MINIPORT_CONFIGURATION_CONTEXT));
+    ConfigurationContext = ExAllocatePool(NonPagedPool, sizeof(MINIPORT_CONFIGURATION_CONTEXT));
     if(!ConfigurationContext)
     {
         NDIS_DbgPrint(MIN_TRACE,("Insufficient resources.\n"));
     if(!ConfigurationContext)
     {
         NDIS_DbgPrint(MIN_TRACE,("Insufficient resources.\n"));
@@ -905,7 +905,7 @@ NdisOpenConfigurationKeyByName(
         return;
     }
 
         return;
     }
 
-    ConfigurationContext = ExAllocatePool(PagedPool, sizeof(MINIPORT_CONFIGURATION_CONTEXT));
+    ConfigurationContext = ExAllocatePool(NonPagedPool, sizeof(MINIPORT_CONFIGURATION_CONTEXT));
     if(!ConfigurationContext)
     {
         NDIS_DbgPrint(MIN_TRACE,("Insufficient resources.\n"));
     if(!ConfigurationContext)
     {
         NDIS_DbgPrint(MIN_TRACE,("Insufficient resources.\n"));