mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
bitkeeper revision 1.1159.130.4 (41792f48shx1E0y1gWtmTdYNJN6Q7g)
Put check in the wrong place. :-)
This commit is contained in:
1 parent
af23bfbeea
commit
213769c19f
1 file changed
+2
-2
@@ -159,8 +159,6 @@ static long evtchn_bind_interdomain(evtchn_bind_interdomain_t *bind)
|
||||
switch ( d1->event_channel[port1].state )
|
||||
{
|
||||
case ECS_FREE:
|
||||
if ( !IS_PRIV(current) && (dom2 != DOMID_SELF) )
|
||||
ERROR_EXIT(-EPERM);
|
||||
break;
|
||||
|
||||
case ECS_UNBOUND:
|
||||
@@ -182,6 +180,8 @@ static long evtchn_bind_interdomain(evtchn_bind_interdomain_t *bind)
|
||||
switch ( d2->event_channel[port2].state )
|
||||
{
|
||||
case ECS_FREE:
|
||||
if ( !IS_PRIV(current) && (dom2 != DOMID_SELF) )
|
||||
ERROR_EXIT(-EPERM);
|
||||
break;
|
||||
|
||||
case ECS_UNBOUND:
|
||||
|
||||