Skip to contentSkip to conversation

2.5.x net driver fixes

PATCH New Jeff Garzik 1 participant 1 message Nov 13, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2.5.x net driver fixes

Linus, please do a

bk pull bk://gkernel.bkbits.net/net-drivers-2.5

This will update the following files:

 drivers/net/tg3.c         |    2 +-
 drivers/net/tulip/de4x5.c |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

through these ChangeSets:

<[email protected]> (03/11/12 1.1414.3.4)
[netdrvr de4x5] NE54-de4x5 - fix missing free on error path - found by viro

<[email protected]> (03/11/12 1.1414.3.3)
[netdrvr tg3] initialize workqueue correctly

(fixes crash)

drivers/net/tg3.c +1 -1
diff -Nru a/drivers/net/tg3.c b/drivers/net/tg3.c
@@ -7605,7 +7605,7 @@
 	spin_lock_init(&tp->lock);
 	spin_lock_init(&tp->tx_lock);
 	spin_lock_init(&tp->indirect_lock);
-	PREPARE_WORK(&tp->reset_task, tg3_reset_task, tp);
+	INIT_WORK(&tp->reset_task, tg3_reset_task, tp);
 
 	tp->regs = (unsigned long) ioremap(tg3reg_base, tg3reg_len);
 	if (tp->regs == 0UL) {
drivers/net/tulip/de4x5.c +2 -0
diff -Nru a/drivers/net/tulip/de4x5.c b/drivers/net/tulip/de4x5.c
@@ -1237,6 +1237,8 @@
 	if (lp->useSROM) {
 	    lp->state = INITIALISED;
 	    if (srom_infoleaf_info(dev)) {
+	        dma_free_coherent (gendev, lp->dma_size,
+			       lp->rx_ring, lp->dma_rings);
 		return -ENXIO;
 	    }
 	    srom_init(dev);