[ofw] [PATCH] winmad: allocate registration struct from NonPagedPool
Sean Hefty
sean.hefty at intel.com
Mon Aug 31 14:55:12 PDT 2009
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 at intel.com>
---
This should be included in WinOF 2.1
Index: core/winmad/kernel/wm_reg.c
===================================================================
--- core/winmad/kernel/wm_reg.c (revision 2388)
+++ core/winmad/kernel/wm_reg.c (working copy)
@@ -59,7 +59,7 @@
{
WM_REGISTRATION *reg;
- reg = ExAllocatePoolWithTag(PagedPool, sizeof(WM_REGISTRATION), 'grmw');
+ reg = ExAllocatePoolWithTag(NonPagedPool, sizeof(WM_REGISTRATION),
'grmw');
if (reg == NULL) {
return NULL;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wm-reg-npp.diff
Type: application/octet-stream
Size: 439 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20090831/6e4fdf43/attachment.obj>
More information about the ofw
mailing list