bitkeeper revision 1.1159.130.4 (41792f48shx1E0y1gWtmTdYNJN6Q7g)

Put check in the wrong place. :-)
This commit is contained in:
kaf24@freefall.cl.cam.ac.uk committed 2004-10-22 16:03:20 +00:00
1 parent af23bfbeea
commit 213769c19f
1 file changed
+2 -2
+2 -2
View File
@@ -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:
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.