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

Ravikiran G Thirumalai (kiran@in.ibm.com)
Thu, 12 Jun 2003 12:36:15 +0530


--- 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/