]> xenbits.xensource.com Git - people/pauldu/xenvif.git/commitdiff
Avoid ASSERTion failure on VIF plug
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 23 Mar 2016 14:06:27 +0000 (14:06 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Wed, 23 Mar 2016 14:41:10 +0000 (14:41 +0000)
If the backend is not fast enough then it's possible that the frontend
code sees the backend in state Initialising rather than InitWait. This
causes an ASSERT to be hit.
This patch simply whitelists the Initialising state to avoid the problem.

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

index 7840cb7944ec859d202dbd7cb4d44a94555fd680..5a297364dfb0e446f2f5ec498f7e535613bde6d4 100644 (file)
@@ -1527,6 +1527,7 @@ FrontendPrepare(
                                    XenbusStateClosed);
             break;
 
+        case XenbusStateInitialising:
         case XenbusStateInitWait:
             break;