From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: [PATCH 12/16] xen/evtchn: support more than 4096 ports Date: Wed, 2 Oct 2013 18:14:57 +0100 Message-ID: <1380734101-2991-13-git-send-email-david.vrabel@citrix.com> References: <1380734101-2991-1-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1380734101-2991-1-git-send-email-david.vrabel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Boris Ostrovsky , David Vrabel , Jan Beulich List-Id: xen-devel@lists.xenproject.org From: David Vrabel Remove the check during unbind for NR_EVENT_CHANNELS as this limits support to less than 4096 ports. Signed-off-by: David Vrabel --- drivers/xen/evtchn.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/drivers/xen/evtchn.c b/drivers/xen/evtchn.c index 8b3a69a..1b0fc44 100644 --- a/drivers/xen/evtchn.c +++ b/drivers/xen/evtchn.c @@ -416,10 +416,6 @@ static long evtchn_ioctl(struct file *file, if (copy_from_user(&unbind, uarg, sizeof(unbind))) break; - rc = -EINVAL; - if (unbind.port >= NR_EVENT_CHANNELS) - break; - rc = -ENOTCONN; evtchn = find_evtchn(u, unbind.port); if (!evtchn) -- 1.7.2.5