]> Pileus Git - ~andy/linux/blobdiff - drivers/xen/evtchn.c
xen/evtchn: support more than 4096 ports
[~andy/linux] / drivers / xen / evtchn.c
index 5de2063e16d3c10b598b926c4f38f3e38b2547d7..00f40f051d95668b01ebf6b4c17e6f0e90912198 100644 (file)
@@ -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;