debuggers.hg
diff xen/common/domain.c @ 3650:beb0887c54bc
bitkeeper revision 1.1159.238.1 (4200c8d8KsGlaM3w6o3y4GHhK1jKjg)
A typesafe allocator submitted by Rusty Russel with trivial renames by me.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au> (authored)
Signed-off-by: ian.pratt@cl.cam.ac.uk
A typesafe allocator submitted by Rusty Russel with trivial renames by me.
Signed-off-by: Rusty Russel <rusty@rustcorp.com.au> (authored)
Signed-off-by: ian.pratt@cl.cam.ac.uk
author | iap10@labyrinth.cl.cam.ac.uk |
---|---|
date | Wed Feb 02 12:34:32 2005 +0000 (2005-02-02) |
parents | ba0bfd97ed0f |
children | 0ef6e8e6e85d |
line diff
1.1 --- a/xen/common/domain.c Wed Feb 02 00:26:53 2005 +0000 1.2 +++ b/xen/common/domain.c Wed Feb 02 12:34:32 2005 +0000 1.3 @@ -264,7 +264,7 @@ int final_setup_guestos(struct domain *p 1.4 int rc = 0; 1.5 full_execution_context_t *c; 1.6 1.7 - if ( (c = xmalloc(sizeof(*c))) == NULL ) 1.8 + if ( (c = xmalloc(full_execution_context_t)) == NULL ) 1.9 return -ENOMEM; 1.10 1.11 if ( test_bit(DF_CONSTRUCTED, &p->d_flags) ) 1.12 @@ -311,7 +311,7 @@ long do_boot_vcpu(unsigned long vcpu, fu 1.13 if ( alloc_exec_domain_struct(d, vcpu) == NULL ) 1.14 return -ENOMEM; 1.15 1.16 - if ( (c = xmalloc(sizeof(*c))) == NULL ) 1.17 + if ( (c = xmalloc(full_execution_context_t)) == NULL ) 1.18 { 1.19 rc = -ENOMEM; 1.20 goto out;