diff options
Diffstat (limited to 'drivers/xen/xenbus/xenbus_xs.c')
-rw-r--r-- | drivers/xen/xenbus/xenbus_xs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/xenbus/xenbus_xs.c b/drivers/xen/xenbus/xenbus_xs.c index a580b17..daee5db 100644 --- a/drivers/xen/xenbus/xenbus_xs.c +++ b/drivers/xen/xenbus/xenbus_xs.c @@ -45,7 +45,6 @@ #include <linux/module.h> #include <linux/mutex.h> #include <xen/xenbus.h> -#include <xen/xen.h> #include "xenbus_comms.h" struct xs_stored_msg { @@ -639,7 +638,8 @@ int register_xenbus_watch(struct xenbus_watch *watch) err = xs_watch(watch->node, token); - if (err) { + /* Ignore errors due to multiple registration. */ + if ((err != 0) && (err != -EEXIST)) { spin_lock(&watches_lock); list_del(&watch->list); spin_unlock(&watches_lock); |