mirror of
https://github.com/torvalds/linux.git
synced 2024-11-20 02:51:44 +00:00
xen, 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. Cc: stable@vger.kernel.org Signed-off-by: Juergen Gross <jgross@suse.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
This commit is contained in:
parent
cfc5b2b551
commit
9121b15b56
@ -643,7 +643,6 @@ static void xenfb_backend_changed(struct xenbus_device *dev,
|
||||
break;
|
||||
|
||||
case XenbusStateInitWait:
|
||||
InitWait:
|
||||
xenbus_switch_state(dev, XenbusStateConnected);
|
||||
break;
|
||||
|
||||
@ -654,7 +653,8 @@ InitWait:
|
||||
* 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_read_unsigned(info->xbdev->otherend,
|
||||
"request-update", 0))
|
||||
|
Loading…
Reference in New Issue
Block a user