PATCH: sundance #4a

Jason Lunz (lunz@falooley.org)
Thu, 19 Sep 2002 16:51:34 -0400


--LZvS9be/3tNcYl/X
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

If you're going to bail when reading the ASIC fails, you need to
unregister the dev before you return or Bad Things happen.

Jason

--LZvS9be/3tNcYl/X
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=sundance-4a

--- sundance-garzik.c Thu Sep 19 16:45:57 2002
+++ sundance-unreg.c Thu Sep 19 16:48:22 2002
@@ -599,6 +599,7 @@
if (phy_idx == 0) {
printk(KERN_INFO "%s: No MII transceiver found, aborting. ASIC status %x\n",
dev->name, readl(ioaddr + ASICCtrl));
+ unregister_netdev(dev);
goto err_out_unmap_rx;
}

--LZvS9be/3tNcYl/X--
-
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/