[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] fbfront: fix connecting to backend
# HG changeset patch # User Juergen Gross <jgross@xxxxxxxx> # Date 1493901224 -7200 # Thu May 04 14:33:44 2017 +0200 # Node ID cdd45550a01399d4b74c9a2a2f4d13fe2fd0f402 # Parent 6dceaf8439228ba45948713fdc3136bc0b117383 fbfront: fix connecting to backend Connecting to the backend isn't working reliably in xen-fbfront: in case XenbusStateInitWait of the backend has been missed the backend transition to XenbusStateConnected will trigger the connected state only without doing the actions required when the backend has connected. Signed-off-by: Juergen Gross <jgross@xxxxxxxx> Committed-by: Jan Beulich <jbeulich@xxxxxxxx> --- diff -r 6dceaf843922 -r cdd45550a013 drivers/xen/fbfront/xenfb.c --- a/drivers/xen/fbfront/xenfb.c Thu May 04 14:29:03 2017 +0200 +++ b/drivers/xen/fbfront/xenfb.c Thu May 04 14:33:44 2017 +0200 @@ -807,7 +807,6 @@ static void xenfb_backend_changed(struct break; case XenbusStateInitWait: - InitWait: xenbus_switch_state(dev, XenbusStateConnected); break; @@ -818,8 +817,8 @@ static void xenfb_backend_changed(struct * get Connected twice here. */ if (dev->state != XenbusStateConnected) - goto InitWait; /* no InitWait seen yet, fudge it */ - + /* no InitWait seen yet, fudge it */ + xenbus_switch_state(dev, XenbusStateConnected); if (xenbus_scanf(XBT_NIL, dev->otherend, "feature-resize", "%d", &val) < 0) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |