From: Stefan Berger Subject: [PATCH] [Xen] [ACM] Fix an exit label Date: Thu, 22 Nov 2007 12:03:13 -0500 Message-ID: <1195750993.6177.8.camel@941e-2.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-edO6KFHCPAIlDssAF9rR" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org --=-edO6KFHCPAIlDssAF9rR Content-Type: text/plain Content-Transfer-Encoding: 7bit Jump to a different error exit label if error occurs early in the policy update process. Signed-off-by: Stefan Berger --=-edO6KFHCPAIlDssAF9rR Content-Disposition: attachment; filename=acm_error_exit_label.diff Content-Type: text/x-patch; name=acm_error_exit_label.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit diff -r f62e6c697eeb xen/xsm/acm/acm_policy.c --- a/xen/xsm/acm/acm_policy.c Tue Nov 20 15:34:25 2007 +0000 +++ root/xen-unstable.hg/xen/xsm/acm/acm_policy.c Thu Nov 22 00:33:54 2007 -0500 @@ -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); --=-edO6KFHCPAIlDssAF9rR Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-edO6KFHCPAIlDssAF9rR--