aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/dom0_ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'xen/common/dom0_ops.c')
-rw-r--r--xen/common/dom0_ops.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/xen/common/dom0_ops.c b/xen/common/dom0_ops.c
index 1d43f641ba..e451a8f3e7 100644
--- a/xen/common/dom0_ops.c
+++ b/xen/common/dom0_ops.c
@@ -81,6 +81,7 @@ long do_dom0_op(dom0_op_t *u_dom0_op)
wake_up(p);
reschedule(p);
ret = p->domain;
+ free_task_struct(p);
}
break;
@@ -113,13 +114,14 @@ long do_dom0_op(dom0_op_t *u_dom0_op)
case DOM0_KILLDOMAIN:
{
unsigned int dom = op.u.killdomain.domain;
+ int force = op.u.killdomain.force;
if ( dom == IDLE_DOMAIN_ID )
{
ret = -EPERM;
}
else
{
- ret = kill_other_domain(dom);
+ ret = kill_other_domain(dom, force);
}
}
break;