aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/console
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-11-23 07:21:58 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-11-23 07:21:58 +0000
commit375f53964b1dc6ea8ea6d7057f77b3a43c4c7eca (patch)
tree6c20d4c3f67b410e73c99e11bc19ad0855617b38 /extras/mini-os/console
parent995380cd80da7a5385e06d2ff0798b48cff64c15 (diff)
downloadxen-375f53964b1dc6ea8ea6d7057f77b3a43c4c7eca.tar.gz
xen-375f53964b1dc6ea8ea6d7057f77b3a43c4c7eca.tar.bz2
xen-375f53964b1dc6ea8ea6d7057f77b3a43c4c7eca.zip
minios: Fix xenbus_unwatch_path calls
In a lot of places in MiniOS frontends, xenbus_watch_path_token is used instead of xenbus_watch_path to get more precise wake ups. To free those, xenbus_unwatch_path_token has to be used instead of xenbus_unwatch_path, else the unwatch operation will fail. This fixes spurious watch events left by pv-grub. Signed-Off-By: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'extras/mini-os/console')
-rw-r--r--extras/mini-os/console/xencons_ring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/mini-os/console/xencons_ring.c b/extras/mini-os/console/xencons_ring.c
index 3bb408f70a..ad385b43f4 100644
--- a/extras/mini-os/console/xencons_ring.c
+++ b/extras/mini-os/console/xencons_ring.c
@@ -312,7 +312,7 @@ done:
msg = xenbus_wait_for_state_change(path, &state, &dev->events);
if (msg != NULL || state != XenbusStateConnected) {
printk("backend not available, state=%d\n", state);
- xenbus_unwatch_path(XBT_NIL, path);
+ xenbus_unwatch_path_token(XBT_NIL, path, path);
goto error;
}
}