# Commit 9581c4f9a55372a21e759cd449cb676d0e8feddb # Date 2013-03-06 17:10:26 +0100 # Author Matthew Daley # Committer Jan Beulich fix domain unlocking in some xsm error paths A couple of xsm error/access-denied code paths in hypercalls neglect to unlock a previously locked domain. Fix by ensuring the domains are unlocked correctly. Signed-off-by: Matthew Daley Reviewed-by: Jan Beulich Acked-by: Keir Fraser --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -2262,7 +2262,7 @@ gnttab_get_status_frames(XEN_GUEST_HANDL rc = xsm_grant_setup(current->domain, d); if ( rc ) { op.status = GNTST_permission_denied; - goto out1; + goto out2; } gt = d->grant_table;