ia64/xen-unstable

changeset 2717:fa8f7b78d2c9

bitkeeper revision 1.1159.130.4 (41792f48shx1E0y1gWtmTdYNJN6Q7g)

Put check in the wrong place. :-)
author kaf24@freefall.cl.cam.ac.uk
date Fri Oct 22 16:03:20 2004 +0000 (2004-10-22)
parents 636399a0f740
children db83b3aaf89f
files xen/common/event_channel.c
line diff
     1.1 --- a/xen/common/event_channel.c	Fri Oct 22 16:01:26 2004 +0000
     1.2 +++ b/xen/common/event_channel.c	Fri Oct 22 16:03:20 2004 +0000
     1.3 @@ -159,8 +159,6 @@ static long evtchn_bind_interdomain(evtc
     1.4      switch ( d1->event_channel[port1].state )
     1.5      {
     1.6      case ECS_FREE:
     1.7 -        if ( !IS_PRIV(current) && (dom2 != DOMID_SELF) )
     1.8 -            ERROR_EXIT(-EPERM);
     1.9          break;
    1.10  
    1.11      case ECS_UNBOUND:
    1.12 @@ -182,6 +180,8 @@ static long evtchn_bind_interdomain(evtc
    1.13      switch ( d2->event_channel[port2].state )
    1.14      {
    1.15      case ECS_FREE:
    1.16 +        if ( !IS_PRIV(current) && (dom2 != DOMID_SELF) )
    1.17 +            ERROR_EXIT(-EPERM);
    1.18          break;
    1.19  
    1.20      case ECS_UNBOUND: