PATCH: fix bogus C in ite_gpio

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Fri Mar 21 2003 - 14:22:12 EST


diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.65/drivers/char/ite_gpio.c linux-2.5.65-ac2/drivers/char/ite_gpio.c
--- linux-2.5.65/drivers/char/ite_gpio.c 2003-02-10 18:38:45.000000000 +0000
+++ linux-2.5.65-ac2/drivers/char/ite_gpio.c 2003-03-06 22:03:51.000000000 +0000
@@ -140,7 +140,7 @@
 {
         int ret=-1;
 
- if (MAX_GPIO_LINE > *data >= 0)
+ if ((MAX_GPIO_LINE > *data) && (*data >= 0))
                 ret=ite_gpio_irq_pending[*data];
  
         DEB(printk("ite_gpio_in_status %d ret=%d\n",*data, ret));
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Mar 23 2003 - 22:00:39 EST