]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commitdiff
Fix assertion failure
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 29 Jul 2014 14:30:08 +0000 (15:30 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Wed, 6 Aug 2014 09:17:02 +0000 (10:17 +0100)
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenbus/gnttab.c

index 5e00dbc3a1cbaa33a1e4ec75034219eec9804046..730bbac8cd882f8a58953d8a06554d603cda091d 100644 (file)
@@ -633,6 +633,7 @@ fail4:
     Context->CacheInterface = NULL;
 
     RangeSetTeardown(Context->RangeSet);
+    Context->RangeSet = NULL;
 
 fail3:
     Error("fail3\n");
@@ -688,7 +689,9 @@ GnttabTeardown(
     Context->CacheInterface = NULL;
 
     __GnttabShrink(Context);
+
     RangeSetTeardown(Context->RangeSet);
+    Context->RangeSet = NULL;
 
     Context->Entry = NULL;