summaryrefslogtreecommitdiff
path: root/drivers/xen/evtchn.c
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@citrix.com>2013-09-23 20:03:38 (GMT)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2014-01-06 15:07:50 (GMT)
commit0dc0064add422bc0ef5165ebe9ece3052bbd457d (patch)
tree29dff7edc3c45bf038e3b36a53d3bf4a647f29ff /drivers/xen/evtchn.c
parentfd21069dfe31a4b20f5ef580006abe72d1660f5b (diff)
downloadlinux-0dc0064add422bc0ef5165ebe9ece3052bbd457d.tar.xz
xen/evtchn: support more than 4096 ports
Remove the check during unbind for NR_EVENT_CHANNELS as this limits support to less than 4096 ports. Signed-off-by: David Vrabel <david.vrabel@citrix.com> Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'drivers/xen/evtchn.c')
-rw-r--r--drivers/xen/evtchn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/xen/evtchn.c b/drivers/xen/evtchn.c
index 5de2063..00f40f0 100644
--- a/drivers/xen/evtchn.c
+++ b/drivers/xen/evtchn.c
@@ -417,7 +417,7 @@ static long evtchn_ioctl(struct file *file,
break;
rc = -EINVAL;
- if (unbind.port >= NR_EVENT_CHANNELS)
+ if (unbind.port >= xen_evtchn_nr_channels())
break;
rc = -ENOTCONN;