- PnpInit: Allocate IopBusTypeGuidList from nonpaged pool as it contains a fast mutex.
authorStefan Ginsberg <stefanginsberg@gmail.com>
Thu, 11 Jun 2009 23:36:51 +0000 (23:36 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Thu, 11 Jun 2009 23:36:51 +0000 (23:36 +0000)
- MsqCreateMessageQueue: Allocate the message queue from nonpaged pool as it contains a mutex.

svn path=/trunk/; revision=41386

reactos/ntoskrnl/io/pnpmgr/pnpmgr.c
reactos/subsystems/win32/win32k/ntuser/msgqueue.c

index 6c8eb35..f0f7a17 100644 (file)
@@ -2852,7 +2852,7 @@ PnpInit(VOID)
        ExInitializeFastMutex(&IopBusTypeGuidListLock);
        
     /* 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) {
        DPRINT1("ExAllocatePool() failed\n");
        KeBugCheckEx(PHASE1_INITIALIZATION_FAILED, STATUS_NO_MEMORY, 0, 0, 0);
index cf13da8..65d030e 100644 (file)
@@ -1561,7 +1561,7 @@ MsqCreateMessageQueue(struct _ETHREAD *Thread)
 {
    PUSER_MESSAGE_QUEUE MessageQueue;
 
-   MessageQueue = (PUSER_MESSAGE_QUEUE)ExAllocatePoolWithTag(PagedPool,
+   MessageQueue = (PUSER_MESSAGE_QUEUE)ExAllocatePoolWithTag(NonPagedPool,
                   sizeof(USER_MESSAGE_QUEUE) + sizeof(THRDCARETINFO),
                   TAG_MSGQ);