Skip to contentSkip to conversation

return -EINVAL when trying to kick/kill a nonexistent domain watchdog

RFC PATCH New Laszlo Ersek 1 participant 1 message Oct 14, 2011

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 return -EINVAL when trying to kick/kill a nonexistent domain watchdog

... to be more in-line with the NR_DOMAIN_WATCHDOG_TIMERS check at the top of domain_watchdog(), and also to follow the timer_(delete|settime) POSIX API's EINVAL return value.

xen/common/schedule.c +1 -1
diff -r 4b0907c6a08c xen/common/schedule.c
@@ -763,7 +763,7 @@ static long domain_watchdog(struct domai
     if ( !test_bit(id, &d->watchdog_inuse_map) )
     {
         spin_unlock(&d->watchdog_lock);
-        return -EEXIST;
+        return -EINVAL;
     }
 
     if ( timeout == 0 )

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel