ia64/xen-unstable

changeset 4202:41a66640c8d5

bitkeeper revision 1.1236.1.81 (423a9c35x9t_HfUlWPlWGs0UrB7kUg)

Fix bind-IPI hypercall arg check.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Fri Mar 18 09:15:33 2005 +0000 (2005-03-18)
parents 83ac50ad8b2d
children b31eaecb3354
files xen/common/event_channel.c
line diff
     1.1 --- a/xen/common/event_channel.c	Fri Mar 18 09:12:08 2005 +0000
     1.2 +++ b/xen/common/event_channel.c	Fri Mar 18 09:15:33 2005 +0000
     1.3 @@ -283,6 +283,9 @@ static long evtchn_bind_ipi(evtchn_bind_
     1.4      struct domain *d = ed->domain;
     1.5      int            port, ipi_edom = bind->ipi_edom;
     1.6  
     1.7 +    if ( ipi_edom >= MAX_VIRT_CPUS )
     1.8 +        return -EINVAL;
     1.9 +
    1.10      spin_lock(&d->event_channel_lock);
    1.11  
    1.12      if ( (port = get_free_port(ed)) >= 0 )