Skip to contentSkip to conversation

Fix an exit label

PATCH New Stefan Berger 1 participant 1 message Nov 22, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix an exit label

Jump to a different error exit label if error occurs early in the policy update process.

xen-unstable.hg/xen/xsm/acm/acm_policy.c renamed from xen/xsm/acm/acm_policy.c +2 -1
diff -r f62e6c697eeb xen/xsm/acm/acm_policy.c
@@ -104,7 +104,7 @@ _acm_update_policy(void *buf, u32 buf_si
     /* if ssidrefs are to be deleted, make sure no domain is using them */
     if ( deletions != NULL )
         if ( acm_check_deleted_ssidrefs(deletions, errors) )
-            goto error_lock_free;
+            goto error_lock_free_nossidchange;
 
     if ( (ssidchanges != NULL) && (ssidchanges->num_items > 0) )
         /* assign all running domains new ssidrefs as requested */
@@ -169,6 +169,7 @@ error_lock_free:
     {
         acm_doms_restore_ssidref();
     }
+error_lock_free_nossidchange:
     do_chwall_init_state_curr(NULL);
     write_unlock(&acm_bin_pol_rwlock);
 

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel