[PATCH] Little bug in 8139too net driver

From: Celso Gonzalez (mitago@ono.com)
Date: Mon Sep 17 2001 - 05:09:54 EST


Hi

This patch fixes a bug with an unasigned variable in the net driver 8139too
when its compiled with the
CONFIG_8139TOO_PIO=y option from kernel 2.4.3 to 2.4.9

The error message normally is "Assertion failed! ioaddr != NULL"

diff -u -r linux-2.4.9/drivers/net/8139too.c
linux-2.4.9-patched/drivers/net/8139too.c
--- linux-2.4.9/drivers/net/8139too.c Sun Aug 12 19:52:29 2001
+++ linux-2.4.9-patched/drivers/net/8139too.c Mon Sep 17 11:10:40 2001
@@ -825,6 +825,7 @@
 #ifdef USE_IO_OPS
        ioaddr = (void *) pio_start;
        dev->base_addr = pio_start;
+ tp->mmio_addr = ioaddr;
 #else
        /* ioremap MMIO region */
        ioaddr = ioremap (mmio_start, mmio_len);

I try to contact with Jeff Garzik , but seems heŽs missing.

Regards

Celso González
(mitago@ono.com)
-
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 Sep 23 2001 - 21:00:19 EST