winmad: allocate registration struct from NonPagedPool
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 2 Sep 2009 14:56:19 +0000 (14:56 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Wed, 2 Sep 2009 14:56:19 +0000 (14:56 +0000)
Apparently data structures that are accessed from within MAD callbacks must be
allocated from NonPagedPool.  Allocated the WM_REGISTRATION structure from non
paged pool.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2403 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/winmad/kernel/wm_reg.c

index 8ee32e3..6e352a9 100644 (file)
@@ -59,7 +59,7 @@ static WM_REGISTRATION *WmRegAlloc(WM_PROVIDER *pProvider)
 {\r
        WM_REGISTRATION *reg;\r
 \r
-       reg = ExAllocatePoolWithTag(PagedPool, sizeof(WM_REGISTRATION), 'grmw');\r
+       reg = ExAllocatePoolWithTag(NonPagedPool, sizeof(WM_REGISTRATION), 'grmw');\r
        if (reg == NULL) {\r
                return NULL;\r
        }\r