From eb7b6dada49adfbe6e63ea9e9cab54af255b23de Mon Sep 17 00:00:00 2001 From: shefty Date: Wed, 2 Sep 2009 14:56:19 +0000 Subject: [PATCH] winmad: allocate registration struct from NonPagedPool 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 git-svn-id: svn://openib.tc.cornell.edu/gen1@2403 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- trunk/core/winmad/kernel/wm_reg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/core/winmad/kernel/wm_reg.c b/trunk/core/winmad/kernel/wm_reg.c index 8ee32e31..6e352a9b 100644 --- a/trunk/core/winmad/kernel/wm_reg.c +++ b/trunk/core/winmad/kernel/wm_reg.c @@ -59,7 +59,7 @@ static WM_REGISTRATION *WmRegAlloc(WM_PROVIDER *pProvider) { WM_REGISTRATION *reg; - reg = ExAllocatePoolWithTag(PagedPool, sizeof(WM_REGISTRATION), 'grmw'); + reg = ExAllocatePoolWithTag(NonPagedPool, sizeof(WM_REGISTRATION), 'grmw'); if (reg == NULL) { return NULL; } -- 2.46.0