xen/pv-on-hvm kexec: prevent crash in xenwatch_thread() when stale watch events arrive
[pandora-kernel.git] / drivers / xen / xenbus / xenbus_xs.c
index 5534690..46347a4 100644 (file)
@@ -638,8 +638,7 @@ int register_xenbus_watch(struct xenbus_watch *watch)
 
        err = xs_watch(watch->node, token);
 
-       /* Ignore errors due to multiple registration. */
-       if ((err != 0) && (err != -EEXIST)) {
+       if (err) {
                spin_lock(&watches_lock);
                list_del(&watch->list);
                spin_unlock(&watches_lock);