diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-11-13 21:58:30 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-11-13 21:58:30 +0000 |
commit | f8b6fcaf8f7bd67ceb3c2a3d9a000b5e898ad479 (patch) | |
tree | 73df469a3c3fc5546327c5c22a1b7d7f86aed1d2 /extras/mini-os/xenbus | |
parent | 42b2352e0147c7b4c369cf2bbac965dbe3589a73 (diff) | |
download | xen-f8b6fcaf8f7bd67ceb3c2a3d9a000b5e898ad479.tar.gz xen-f8b6fcaf8f7bd67ceb3c2a3d9a000b5e898ad479.tar.bz2 xen-f8b6fcaf8f7bd67ceb3c2a3d9a000b5e898ad479.zip |
pcifront: implement dynamic connections and disconnections
this patch implements dynamic connections and disconnections in
pcifront.
This feature is required to properly support pci hotplug, because when
no pci devices are assigned to a guest, xend will remove the pci
backend altogether.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'extras/mini-os/xenbus')
-rw-r--r-- | extras/mini-os/xenbus/xenbus.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/extras/mini-os/xenbus/xenbus.c b/extras/mini-os/xenbus/xenbus.c index 916a389644..c4e6abd8a4 100644 --- a/extras/mini-os/xenbus/xenbus.c +++ b/extras/mini-os/xenbus/xenbus.c @@ -96,7 +96,10 @@ void xenbus_wait_for_watch(xenbus_event_queue *queue) if (!queue) queue = &xenbus_events; ret = xenbus_wait_for_watch_return(queue); - free(ret); + if (ret) + free(ret); + else + printk("unexpected path returned by watch\n"); } char* xenbus_wait_for_value(const char* path, const char* value, xenbus_event_queue *queue) |