mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Fix tpm split driver to follow changes in the xenbus API.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
This commit is contained in:
1 parent
ccaff07480
commit
0a045970ea
2 files changed
+14
-3
No files matched your search
@@ -93,7 +93,8 @@ static void frontend_changed(struct xenbus_watch *watch, const char *node)
|
||||
* Tell the front-end that we are ready to go -
|
||||
* unless something bad happens
|
||||
*/
|
||||
err = xenbus_transaction_start(be->dev->nodename);
|
||||
again:
|
||||
err = xenbus_transaction_start();
|
||||
if (err) {
|
||||
xenbus_dev_error(be->dev, err, "starting transaction");
|
||||
return;
|
||||
@@ -127,7 +128,14 @@ static void frontend_changed(struct xenbus_watch *watch, const char *node)
|
||||
goto abort;
|
||||
}
|
||||
|
||||
xenbus_transaction_end(0);
|
||||
err = xenbus_transaction_end(0);
|
||||
if (err == EAGAIN)
|
||||
goto again;
|
||||
if (err) {
|
||||
xenbus_dev_error(be->dev, err, "end of transaction");
|
||||
goto abort;
|
||||
}
|
||||
|
||||
xenbus_dev_ok(be->dev);
|
||||
return;
|
||||
abort:
|
||||
|
||||
@@ -331,7 +331,8 @@ static int talk_to_backend(struct xenbus_device *dev,
|
||||
goto out;
|
||||
}
|
||||
|
||||
err = xenbus_transaction_start(dev->nodename);
|
||||
again:
|
||||
err = xenbus_transaction_start();
|
||||
if (err) {
|
||||
xenbus_dev_error(dev, err, "starting transaction");
|
||||
goto destroy_tpmring;
|
||||
@@ -363,6 +364,8 @@ static int talk_to_backend(struct xenbus_device *dev,
|
||||
}
|
||||
|
||||
err = xenbus_transaction_end(0);
|
||||
if (err == EAGAIN)
|
||||
goto again;
|
||||
if (err) {
|
||||
xenbus_dev_error(dev, err, "completing transaction");
|
||||
goto destroy_tpmring;
|
||||
|
||||