diff options
Diffstat (limited to 'xen/common/event_channel.c')
-rw-r--r-- | xen/common/event_channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c index 3f36d09e83..c51fd10031 100644 --- a/xen/common/event_channel.c +++ b/xen/common/event_channel.c @@ -302,7 +302,7 @@ static long evtchn_bind_pirq(evtchn_bind_pirq_t *bind) int port, pirq = bind->pirq; long rc; - if ( (pirq < 0) || (pirq >= ARRAY_SIZE(d->pirq_to_evtchn)) ) + if ( (pirq < 0) || (pirq >= d->nr_pirqs) ) return -EINVAL; if ( !irq_access_permitted(d, pirq) ) |