ia64/xen-unstable

changeset 7697:dd0e2e9fa4e6

Fixed domain refcounting bug (found by inspection)
author unknown@aosda.research.intel-research.net
date Tue Nov 08 11:36:37 2005 +0100 (2005-11-08)
parents c4fc28fb580a
children d25bdfb2576e
files xen/acm/acm_core.c
line diff
     1.1 --- a/xen/acm/acm_core.c	Tue Nov 08 11:31:16 2005 +0100
     1.2 +++ b/xen/acm/acm_core.c	Tue Nov 08 11:36:37 2005 +0100
     1.3 @@ -254,7 +254,10 @@ acm_init_domain_ssid(domid_t id, ssidref
     1.4          return ACM_NULL_POINTER_ERROR;
     1.5      }
     1.6      if ((ssid = xmalloc(struct acm_ssid_domain)) == NULL)
     1.7 +    {
     1.8 +        put_domain(subj);
     1.9          return ACM_INIT_SSID_ERROR;
    1.10 +    }
    1.11  
    1.12      ssid->datatype       = DOMAIN;
    1.13      ssid->subject        = subj;