]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commitdiff
Fix error path cleanup
authorOwen Smith <owen.smith@citrix.com>
Thu, 19 May 2022 10:17:36 +0000 (11:17 +0100)
committerPaul Durrant <pdurrant@amazon.com>
Thu, 19 May 2022 12:45:42 +0000 (13:45 +0100)
Signed-off-by: Owen Smith <owen.smith@citrix.com>
src/xenbus/fdo.c

index 48d381afd47ae6461c8d621b03fe77ee68e58ccb..d08c518ee30e92e5a2e65a56bc6dba5ab5e1043d 100644 (file)
@@ -3389,7 +3389,10 @@ FdoCreateHole(
 fail3:
     Error("fail3\n");
 
-    __FdoDestroyMemoryHole(Fdo);
+    if (Fdo->Mdl != NULL)
+        __FdoDestroyMemoryHole(Fdo);
+    else
+        __FdoDestroyPciHole(Fdo);
 
 fail2:
     Error("fail2\n");