mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 19:41:40 +00:00
- PnpInit: Allocate IopBusTypeGuidList from nonpaged pool as it contains a fast mutex.
- MsqCreateMessageQueue: Allocate the message queue from nonpaged pool as it contains a mutex. svn path=/trunk/; revision=41386
This commit is contained in:
parent
d44cbb4ee0
commit
5bd2bdcaec
2 changed files with 2 additions and 2 deletions
|
@ -2852,7 +2852,7 @@ PnpInit(VOID)
|
||||||
ExInitializeFastMutex(&IopBusTypeGuidListLock);
|
ExInitializeFastMutex(&IopBusTypeGuidListLock);
|
||||||
|
|
||||||
/* Initialize the Bus Type GUID List */
|
/* Initialize the Bus Type GUID List */
|
||||||
IopBusTypeGuidList = ExAllocatePool(PagedPool, sizeof(IO_BUS_TYPE_GUID_LIST));
|
IopBusTypeGuidList = ExAllocatePool(NonPagedPool, sizeof(IO_BUS_TYPE_GUID_LIST));
|
||||||
if (!IopBusTypeGuidList) {
|
if (!IopBusTypeGuidList) {
|
||||||
DPRINT1("ExAllocatePool() failed\n");
|
DPRINT1("ExAllocatePool() failed\n");
|
||||||
KeBugCheckEx(PHASE1_INITIALIZATION_FAILED, STATUS_NO_MEMORY, 0, 0, 0);
|
KeBugCheckEx(PHASE1_INITIALIZATION_FAILED, STATUS_NO_MEMORY, 0, 0, 0);
|
||||||
|
|
|
@ -1561,7 +1561,7 @@ MsqCreateMessageQueue(struct _ETHREAD *Thread)
|
||||||
{
|
{
|
||||||
PUSER_MESSAGE_QUEUE MessageQueue;
|
PUSER_MESSAGE_QUEUE MessageQueue;
|
||||||
|
|
||||||
MessageQueue = (PUSER_MESSAGE_QUEUE)ExAllocatePoolWithTag(PagedPool,
|
MessageQueue = (PUSER_MESSAGE_QUEUE)ExAllocatePoolWithTag(NonPagedPool,
|
||||||
sizeof(USER_MESSAGE_QUEUE) + sizeof(THRDCARETINFO),
|
sizeof(USER_MESSAGE_QUEUE) + sizeof(THRDCARETINFO),
|
||||||
TAG_MSGQ);
|
TAG_MSGQ);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue