Messages in this thread Patch in this message | | | Date | Fri, 21 Mar 2003 19:22:12 GMT | From | Alan Cox <> | Subject | PATCH: fix bogus C in ite_gpio |
| |
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/
| |