[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[XENBUS PATCH v2 4/7] xenbus: Use nonpaged pool in FdoQueryId



Allow the DeviceID result to eventually be accessed from DISPATCH_LEVEL.

Signed-off-by: Tu Dinh <ngoc-tu.dinh@xxxxxxxxxx>
---
 src/xenbus/fdo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xenbus/fdo.c b/src/xenbus/fdo.c
index 2a61db7..432e907 100644
--- a/src/xenbus/fdo.c
+++ b/src/xenbus/fdo.c
@@ -627,7 +627,7 @@ FdoQueryId(
     Buffer = (PWSTR)StatusBlock.Information;
     Length = (ULONG)(wcslen(Buffer) + 1) * sizeof (CHAR);
 
-    *Id = __AllocatePoolWithTag(PagedPool, Length, 'SUB');
+    *Id = __AllocatePoolWithTag(NonPagedPool, Length, 'SUB');
 
     status = STATUS_NO_MEMORY;
     if (*Id == NULL)
-- 
2.50.1.windows.1



Ngoc Tu Dinh | Vates XCP-ng Developer

XCP-ng & Xen Orchestra - Vates solutions

web: https://vates.tech




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.