ia64/xen-unstable
changeset 474:6aac08d5c0d2
bitkeeper revision 1.249 (3ece129b9g77vsjTtSwOh-g8aHpxHA)
dom0_ops.c:
Small bug fix.
dom0_ops.c:
Small bug fix.
author | kaf24@scramble.cl.cam.ac.uk |
---|---|
date | Fri May 23 12:22:51 2003 +0000 (2003-05-23) |
parents | a6457a163b5c |
children | 46f7cc0bb011 |
files | xen/common/dom0_ops.c |
line diff
1.1 --- a/xen/common/dom0_ops.c Wed May 21 16:37:07 2003 +0000 1.2 +++ b/xen/common/dom0_ops.c Fri May 23 12:22:51 2003 +0000 1.3 @@ -93,11 +93,14 @@ long do_dom0_op(dom0_op_t *u_dom0_op) 1.4 { 1.5 struct task_struct * p = find_domain_by_id(op.u.meminfo.domain); 1.6 ret = -EINVAL; 1.7 - if ( (p != NULL) && (p->flags & PF_CONSTRUCTED) ) 1.8 + if ( p != NULL ) 1.9 { 1.10 - wake_up(p); 1.11 - reschedule(p); 1.12 - ret = p->domain; 1.13 + if ( (p->flags & PF_CONSTRUCTED) != 0 ) 1.14 + { 1.15 + wake_up(p); 1.16 + reschedule(p); 1.17 + ret = p->domain; 1.18 + } 1.19 put_task_struct(p); 1.20 } 1.21 }