ia64/xen-unstable

changeset 16011:96f46954c7f1

xsm:acm: fix a null dereference bug.
Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
author Keir Fraser <keir@xensource.com>
date Fri Sep 28 15:05:11 2007 +0100 (2007-09-28)
parents b4c8cd753b88
children ff4ff3e3ebbe
files xen/include/xsm/acm/acm_hooks.h
line diff
     1.1 --- a/xen/include/xsm/acm/acm_hooks.h	Fri Sep 28 15:03:50 2007 +0100
     1.2 +++ b/xen/include/xsm/acm/acm_hooks.h	Fri Sep 28 15:05:11 2007 +0100
     1.3 @@ -284,17 +284,12 @@ static inline int acm_domain_create(stru
     1.4      } else if ((acm_secondary_ops->domain_create != NULL) &&
     1.5                  acm_secondary_ops->domain_create(subject_ssid, ssidref,
     1.6                                                   domid)) {
     1.7 -        /* roll-back primary */
     1.8 -        if (acm_primary_ops->domain_destroy != NULL)
     1.9 -            acm_primary_ops->domain_destroy(d->ssid, d);
    1.10          rc = ACM_ACCESS_DENIED;
    1.11      }
    1.12  
    1.13      if ( rc == ACM_OK )
    1.14      {
    1.15          acm_domain_ssid_onto_list(d->ssid);
    1.16 -    } else {
    1.17 -        acm_free_domain_ssid(d->ssid);
    1.18      }
    1.19  
    1.20  error_out: