debuggers.hg

diff xen/common/domain.c @ 3658:0ef6e8e6e85d

bitkeeper revision 1.1159.212.71 (4200f0afX_JumfbEHQex6TdFENULMQ)

Merge labyrinth.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-unstable.bk
into labyrinth.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-unstable.bk
author iap10@labyrinth.cl.cam.ac.uk
date Wed Feb 02 15:24:31 2005 +0000 (2005-02-02)
parents ba0bfd97ed0f beb0887c54bc
children bbe8541361dd 61899d6ae2eb 523e995bcc57
line diff
     1.1 --- a/xen/common/domain.c	Wed Feb 02 09:38:32 2005 +0000
     1.2 +++ b/xen/common/domain.c	Wed Feb 02 15:24:31 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;