Skip to contentSkip to conversation

Not bypassing spin_unlock

PATCH New Stefan Berger 1 participant 1 message Apr 20, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Not bypassing spin_unlock

Don't bypass the spin_unlock at the end of the function.

xen/common/domctl.c +4 -2
diff -r c7c67a1a7077 xen/common/domctl.c
@@ -301,8 +305,10 @@ long do_domctl(XEN_GUEST_HANDLE(xen_domc
         unsigned int domcr_flags;
 
         if ( supervisor_mode_kernel ||
-             (op->u.createdomain.flags & ~XEN_DOMCTL_CDF_hvm_guest) )
-            return -EINVAL;
+             (op->u.createdomain.flags & ~XEN_DOMCTL_CDF_hvm_guest) ) {
+            ret = -EINVAL;
+            break;
+        }
 
         dom = op->domain;
         if ( (dom > 0) && (dom < DOMID_FIRST_RESERVED) )

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