[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xsm:acm: fix a null dereference bug.



# HG changeset patch
# User Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1190988311 -3600
# Node ID 96f46954c7f1e47624f4fd762ccbaf87378fcc7d
# Parent  b4c8cd753b88f042741edd4402562dbf27ca9811
xsm:acm: fix a null dereference bug.
Signed-off-by: George Coker <gscoker@xxxxxxxxxxxxxx>
---
 xen/include/xsm/acm/acm_hooks.h |    5 -----
 1 files changed, 5 deletions(-)

diff -r b4c8cd753b88 -r 96f46954c7f1 xen/include/xsm/acm/acm_hooks.h
--- a/xen/include/xsm/acm/acm_hooks.h   Fri Sep 28 15:03:50 2007 +0100
+++ b/xen/include/xsm/acm/acm_hooks.h   Fri Sep 28 15:05:11 2007 +0100
@@ -284,17 +284,12 @@ static inline int acm_domain_create(stru
     } else if ((acm_secondary_ops->domain_create != NULL) &&
                 acm_secondary_ops->domain_create(subject_ssid, ssidref,
                                                  domid)) {
-        /* roll-back primary */
-        if (acm_primary_ops->domain_destroy != NULL)
-            acm_primary_ops->domain_destroy(d->ssid, d);
         rc = ACM_ACCESS_DENIED;
     }
 
     if ( rc == ACM_OK )
     {
         acm_domain_ssid_onto_list(d->ssid);
-    } else {
-        acm_free_domain_ssid(d->ssid);
     }
 
 error_out:

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.