- MINIPORT_CONFIGURATION_CONTEXT must be allocated from nonpaged pool as it contains a spinlock

svn path=/trunk/; revision=41387
This commit is contained in:
Stefan Ginsberg 2009-06-11 23:45:59 +00:00
parent 5bd2bdcaec
commit 4d52a6e737

View file

@ -194,7 +194,7 @@ NdisOpenConfiguration(
return; return;
} }
ConfigurationContext = ExAllocatePool(PagedPool, sizeof(MINIPORT_CONFIGURATION_CONTEXT)); ConfigurationContext = ExAllocatePool(NonPagedPool, sizeof(MINIPORT_CONFIGURATION_CONTEXT));
if(!ConfigurationContext) if(!ConfigurationContext)
{ {
NDIS_DbgPrint(MIN_TRACE,("Insufficient resources.\n")); 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) if(!ConfigurationContext)
{ {
NDIS_DbgPrint(MIN_TRACE,("Insufficient resources.\n")); 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) if(!ConfigurationContext)
{ {
NDIS_DbgPrint(MIN_TRACE,("Insufficient resources.\n")); 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) if(!ConfigurationContext)
{ {
NDIS_DbgPrint(MIN_TRACE,("Insufficient resources.\n")); NDIS_DbgPrint(MIN_TRACE,("Insufficient resources.\n"));