]> xenbits.xensource.com Git - pvdrivers/win/xenvif.git/commitdiff
FdoCreate: bad memset in failure path.
authorRabish Kumar (3P) <rabish.kumar@citrix.com>
Wed, 16 Nov 2022 16:14:21 +0000 (21:44 +0530)
committerPaul Durrant <pdurrant@amazon.com>
Fri, 2 Dec 2022 18:28:43 +0000 (18:28 +0000)
The fail14 exit path attempts to clear the wrong interface which may cause
an ASSERTion failure at fail3.

Signed-off-by: Rabish Kumar <rabish.kumar@citrix.com>
Acked-by: Owen Smith <owen.smith@citrix.com>
src/xenvif/fdo.c

index 8067e036d81d39de1a5e76a5981848c7af96f071..b684c7b2d76a01d5c19f5581a8c1b83817d3faf5 100644 (file)
@@ -3173,8 +3173,8 @@ FdoCreate(
 fail14:
     Error("fail14\n");
 
-    RtlZeroMemory(&Fdo->UnplugInterface,
-                  sizeof (XENBUS_UNPLUG_INTERFACE));
+    RtlZeroMemory(&Fdo->GnttabInterface,
+                  sizeof (XENBUS_GNTTAB_INTERFACE));
 
 fail13:
     Error("fail13\n");