Return -EINVAL when trying to kick/kill a nonexistent domain watchdog
authorKeir Fraser <keir@xen.org>
Fri, 14 Oct 2011 17:08:04 +0000 (18:08 +0100)
committerKeir Fraser <keir@xen.org>
Fri, 14 Oct 2011 17:08:04 +0000 (18:08 +0100)
commit53e9d118042bbcf5b82b1b077e6816601050ea3e
tree2c9d03d9043d01d132d72e77d57f28d8ab62cf16
parent885aa947cfa919231537d45af918a151b7934949
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 <lersek@redhat.com>
Also, replace EEXIST with ENOSPC when failing to allocate a new
domain watchdog.

Signed-off-by: Keir Fraser <keir@xen.org>
Committed-by: Keir Fraser <keir@xen.org>
xen/common/schedule.c