win-pvdrivers

changeset 405:4fee03f012ee

list_entry can be accessed at DISPATCH_LEVEL so make in NonPagedPool
author James Harper <james.harper@bendigoit.com.au>
date Thu Jul 24 19:53:37 2008 +1000 (2008-07-24)
parents 1a1ddc1beba6
children b9028997f48b
files xenhide/xenhide.c
line diff
     1.1 --- a/xenhide/xenhide.c	Mon Jul 21 15:45:14 2008 +1000
     1.2 +++ b/xenhide/xenhide.c	Thu Jul 24 19:53:37 2008 +1000
     1.3 @@ -299,7 +299,7 @@ XenHide_AddDevice(
     1.4    if (gplpv && hide_type == XENHIDE_TYPE_DEVICE)
     1.5    {
     1.6      KeAcquireSpinLock(&xenhide_global_data.hide_list_lock, &old_irql);
     1.7 -    list_entry = ExAllocatePoolWithTag(PagedPool, sizeof(XENHIDE_HIDE_LIST_ENTRY), XENHIDE_POOL_TAG);
     1.8 +    list_entry = ExAllocatePoolWithTag(NonPagedPool, sizeof(XENHIDE_HIDE_LIST_ENTRY), XENHIDE_POOL_TAG);
     1.9      list_entry->pdo = PhysicalDeviceObject;
    1.10      InsertTailList(&xenhide_global_data.hide_list_head, (PLIST_ENTRY)list_entry);
    1.11      KeReleaseSpinLock(&xenhide_global_data.hide_list_lock, old_irql);