]> xenbits.xensource.com Git - pvdrivers/win/xenvbd.git/commitdiff
NULL the SuspendCallback context when going to D3...
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 2 Dec 2015 15:31:27 +0000 (15:31 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Wed, 2 Dec 2015 15:31:27 +0000 (15:31 +0000)
...otherwise going back to D0 will hit an ASSERTion failure.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenvbd/fdo.c

index 09fdd9e1247d1dec0073086f450cf708cbef478c..fc97bdc6967fba8feadf7b6c0c608bcd7d192056 100644 (file)
@@ -1485,6 +1485,7 @@ FdoD0ToD3(
 
     // remove suspend callback
     XENBUS_SUSPEND(Deregister, &Fdo->Suspend, Fdo->SuspendCallback);
+    Fdo->SuspendCallback = NULL;
 
     __FdoD0ToD3(Fdo);