return -EINVAL when trying to kick/kill a nonexistent domain watchdog
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.
Signed-off-by Laszlo Ersek <[email protected]>
xen/common/schedule.c +1 -1
@@ -763,7 +763,7 @@ static long domain_watchdog(struct domaiif ( !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