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

[win-pv-devel] [PATCH] NULL the SuspendCallback context when going to D3...



...otherwise going back to D0 will hit an ASSERTion failure.

Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
---
 src/xenvbd/fdo.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/xenvbd/fdo.c b/src/xenvbd/fdo.c
index 4a72a12..eac0584 100644
--- a/src/xenvbd/fdo.c
+++ b/src/xenvbd/fdo.c
@@ -1483,6 +1483,7 @@ FdoD0ToD3(
 
     // remove suspend callback
     XENBUS_SUSPEND(Deregister, &Fdo->Suspend, Fdo->SuspendCallback);
+    Fdo->SuspendCallback = NULL;
 
     __FdoD0ToD3(Fdo);
 
-- 
2.1.1


_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel


 


Rackspace

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