From: shefty Date: Wed, 26 Aug 2009 16:47:11 +0000 (+0000) Subject: winverbs: ensure that event and mutex memory are resident X-Git-Url: http://git.etherboot.org/mirror/winof/.git/commitdiff_plain/ec66cd957ac1e1322a7b61f4eaa8f15b79c1321a winverbs: ensure that event and mutex memory are resident The winverbs PD structure contains both an event and a guarded mutex. Both must be allocated as part of resident memory, or vague system corruptions may occur if their memory is paged out. The fix is to allocate the PD structure from NonPagedPool. Signed-off-by: Sean Hefty git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2384 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- diff --git a/core/winverbs/kernel/wv_pd.c b/core/winverbs/kernel/wv_pd.c index 304588da..5ce0c205 100644 --- a/core/winverbs/kernel/wv_pd.c +++ b/core/winverbs/kernel/wv_pd.c @@ -74,7 +74,7 @@ static NTSTATUS WvPdAlloc(WV_DEVICE *pDevice, WV_PROTECTION_DOMAIN **ppPd, ib_api_status_t ib_status; WV_PROTECTION_DOMAIN *pd; - pd = ExAllocatePoolWithTag(PagedPool, sizeof(WV_PROTECTION_DOMAIN), 'dpvw'); + pd = ExAllocatePoolWithTag(NonPagedPool, sizeof(WV_PROTECTION_DOMAIN), 'dpvw'); if (pd == NULL) { return STATUS_NO_MEMORY; }