diff options
author | Andrey Utkin <andrey.krieger.utkin@gmail.com> | 2014-07-17 19:25:50 +0300 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2014-08-01 15:44:45 +0100 |
commit | 474b8feafb5013130d625898139b56fa54e6c9f2 (patch) | |
tree | 1a23b853e381fac0e3f6f809f1118daa91a7ed59 /drivers/xen | |
parent | 3fbdf631b765571b18ee51e073d8f46958e98ceb (diff) | |
download | linux-stable-474b8feafb5013130d625898139b56fa54e6c9f2.tar.gz linux-stable-474b8feafb5013130d625898139b56fa54e6c9f2.tar.bz2 linux-stable-474b8feafb5013130d625898139b56fa54e6c9f2.zip |
xen/events: drop negativity check of unsigned parameter
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=80531
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Andrey Utkin <andrey.krieger.utkin@gmail.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/events/events_base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/xen/events/events_base.c b/drivers/xen/events/events_base.c index c919d3d5c845..5b5c5ff273fd 100644 --- a/drivers/xen/events/events_base.c +++ b/drivers/xen/events/events_base.c @@ -246,7 +246,7 @@ static void xen_irq_info_cleanup(struct irq_info *info) */ unsigned int evtchn_from_irq(unsigned irq) { - if (unlikely(WARN(irq < 0 || irq >= nr_irqs, "Invalid irq %d!\n", irq))) + if (unlikely(WARN(irq >= nr_irqs, "Invalid irq %d!\n", irq))) return 0; return info_for_irq(irq)->evtchn; |