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

[PATCH 1/4] Fix Warning under SDV builds



ASSERT In2 is not NULL, as its only set when the old IOCTL is converted to use
the new IOCTL's data structures.

Signed-off-by: Owen Smith <owen.smith@xxxxxxxxx>
---
 src/xeniface/ioctl_gnttab.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/xeniface/ioctl_gnttab.c b/src/xeniface/ioctl_gnttab.c
index 8ab2099..5cf246c 100644
--- a/src/xeniface/ioctl_gnttab.c
+++ b/src/xeniface/ioctl_gnttab.c
@@ -393,6 +393,7 @@ IoctlGnttabPermitForeignAccess(
     In = NULL;
 
     if (ControlCode == IOCTL_XENIFACE_GNTTAB_PERMIT_FOREIGN_ACCESS) {
+        ASSERT3P(In1, !=, NULL);
         Context->UseRequestId = TRUE;
         Context->RequestId = In1->RequestId;
         __FreeCapturedBuffer(In1);
-- 
2.41.0.windows.3




 


Rackspace

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