mirror of
https://github.com/reactos/reactos.git
synced 2024-10-04 00:13:57 +00:00
- MINIPORT_CONFIGURATION_CONTEXT must be allocated from nonpaged pool as it contains a spinlock
svn path=/trunk/; revision=41387
This commit is contained in:
parent
5bd2bdcaec
commit
4d52a6e737
|
@ -194,7 +194,7 @@ NdisOpenConfiguration(
|
|||
return;
|
||||
}
|
||||
|
||||
ConfigurationContext = ExAllocatePool(PagedPool, sizeof(MINIPORT_CONFIGURATION_CONTEXT));
|
||||
ConfigurationContext = ExAllocatePool(NonPagedPool, sizeof(MINIPORT_CONFIGURATION_CONTEXT));
|
||||
if(!ConfigurationContext)
|
||||
{
|
||||
NDIS_DbgPrint(MIN_TRACE,("Insufficient resources.\n"));
|
||||
|
@ -268,7 +268,7 @@ NdisOpenProtocolConfiguration(
|
|||
return;
|
||||
}
|
||||
|
||||
ConfigurationContext = ExAllocatePool(PagedPool, sizeof(MINIPORT_CONFIGURATION_CONTEXT));
|
||||
ConfigurationContext = ExAllocatePool(NonPagedPool, sizeof(MINIPORT_CONFIGURATION_CONTEXT));
|
||||
if(!ConfigurationContext)
|
||||
{
|
||||
NDIS_DbgPrint(MIN_TRACE,("Insufficient resources.\n"));
|
||||
|
@ -846,7 +846,7 @@ NdisOpenConfigurationKeyByIndex(
|
|||
return;
|
||||
}
|
||||
|
||||
ConfigurationContext = ExAllocatePool(PagedPool, sizeof(MINIPORT_CONFIGURATION_CONTEXT));
|
||||
ConfigurationContext = ExAllocatePool(NonPagedPool, sizeof(MINIPORT_CONFIGURATION_CONTEXT));
|
||||
if(!ConfigurationContext)
|
||||
{
|
||||
NDIS_DbgPrint(MIN_TRACE,("Insufficient resources.\n"));
|
||||
|
@ -905,7 +905,7 @@ NdisOpenConfigurationKeyByName(
|
|||
return;
|
||||
}
|
||||
|
||||
ConfigurationContext = ExAllocatePool(PagedPool, sizeof(MINIPORT_CONFIGURATION_CONTEXT));
|
||||
ConfigurationContext = ExAllocatePool(NonPagedPool, sizeof(MINIPORT_CONFIGURATION_CONTEXT));
|
||||
if(!ConfigurationContext)
|
||||
{
|
||||
NDIS_DbgPrint(MIN_TRACE,("Insufficient resources.\n"));
|
||||
|
|
Loading…
Reference in a new issue