]> xenbits.xensource.com Git - people/pauldu/xenvif.git/commitdiff
Remove erroneous code to re-acquire backend path on resume
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 22 Mar 2016 11:29:37 +0000 (11:29 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Tue, 22 Mar 2016 14:40:31 +0000 (14:40 +0000)
Commit 765b7a6a added code to release and re-acquire the backend
path (and domid) on resume from suspend. That code falsely
assumes that the frontend is not in a closed state at the time.
It's also not clear why it was added in the first place so
this patch removes it again, as it causes a BSOD when the
frontend is in the closed state.

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

index e513790e52d2364ec04941baddea3a506befa92a..9aa1d76e98448f439cfb53630ebdd33a77dadc33 100644 (file)
@@ -2240,12 +2240,6 @@ FrontendSuspendCallbackLate(
     )
 {
     PXENVIF_FRONTEND    Frontend = Argument;
-    NTSTATUS            status;
-
-    FrontendReleaseBackend(Frontend);
-
-    status = FrontendAcquireBackend(Frontend);
-    ASSERT(NT_SUCCESS(status));
 
     __FrontendSuspend(Frontend);
     __FrontendResume(Frontend);