From: Paul Durrant Date: Wed, 2 Dec 2015 15:31:27 +0000 (+0000) Subject: NULL the SuspendCallback context when going to D3... X-Git-Tag: 8.1.0-rc7~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=08697d5c2081bd474ee714dfb1923c7a89eac11d;p=pvdrivers%2Fwin%2Fxenvbd.git NULL the SuspendCallback context when going to D3... ...otherwise going back to D0 will hit an ASSERTion failure. Signed-off-by: Paul Durrant --- diff --git a/src/xenvbd/fdo.c b/src/xenvbd/fdo.c index 09fdd9e..fc97bdc 100644 --- a/src/xenvbd/fdo.c +++ b/src/xenvbd/fdo.c @@ -1485,6 +1485,7 @@ FdoD0ToD3( // remove suspend callback XENBUS_SUSPEND(Deregister, &Fdo->Suspend, Fdo->SuspendCallback); + Fdo->SuspendCallback = NULL; __FdoD0ToD3(Fdo);