Reset the cached state to XenbusStateInitialising on resume -- we're connecting

to a new backend, so the state value needs to be reset.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
emellor@leeni.uk.xensource.com committed 2006-04-12 18:53:38 +01:00
1 parent 631caafe95
commit f9eb14bf6a
1 file changed
+2
@@ -825,6 +825,8 @@ static int resume_dev(struct device *dev, void *data)
return err;
}
xdev->state = XenbusStateInitialising;
if (drv->resume)
err = drv->resume(xdev);
if (err)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.