diff --git a/xen/common/domctl.c b/xen/common/domctl.c index 03d0226039..650310e874 100644 --- a/xen/common/domctl.c +++ b/xen/common/domctl.c @@ -504,7 +504,7 @@ long do_domctl(XEN_GUEST_HANDLE_PARAM(xen_domctl_t) u_domctl) dom = op->domain; if ( (dom > 0) && (dom < DOMID_FIRST_RESERVED) ) { - ret = -EINVAL; + ret = -EEXIST; if ( !is_free_domid(dom) ) break; }