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

[XENBUS PATCH 05/13] Suppress uninitialized *Interface warning in FdoQueryInterface



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

diff --git a/src/xenbus/fdo.c b/src/xenbus/fdo.c
index 4d3282d..c610231 100644
--- a/src/xenbus/fdo.c
+++ b/src/xenbus/fdo.c
@@ -5611,6 +5611,9 @@ FdoQueryInterface(
     if (Irp == NULL)
         goto fail1;
 
+    // suppress "uninitialized *Interface" warning when IoCallDriver succeeds
+    RtlZeroMemory(Interface, sizeof (*Interface));
+
     StackLocation = IoGetNextIrpStackLocation(Irp);
     StackLocation->MinorFunction = IRP_MN_QUERY_INTERFACE;
 
-- 
2.50.0.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®.