Re: [patchset] Fix sign handling bugs in 2.5 -- 2/5; epca

From: Ravikiran G Thirumalai (kiran@in.ibm.com)
Date: Thu Jun 12 2003 - 02:06:15 EST


--- linux-2.5.70/drivers/char/epca.c Tue May 27 06:30:41 2003
+++ shb-epca-2.5.70/drivers/char/epca.c Wed Jun 11 16:09:43 2003
@@ -3740,7 +3740,7 @@
 
                         case 5:
                                 board.port = (unsigned char *)ints[index];
- if (board.port <= 0)
+ if (ints[index] <= 0)
                                 {
                                         printk(KERN_ERR "<Error> - epca_setup: Invalid io port 0x%x\n", (unsigned int)board.port);
                                         invalid_lilo_config = 1;
@@ -3752,7 +3752,7 @@
 
                         case 6:
                                 board.membase = (unsigned char *)ints[index];
- if (board.membase <= 0)
+ if (ints[index] <= 0)
                                 {
                                         printk(KERN_ERR "<Error> - epca_setup: Invalid memory base 0x%x\n",(unsigned int)board.membase);
                                         invalid_lilo_config = 1;
-
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 Jun 15 2003 - 22:00:31 EST