lkml.org 
[lkml]   [2002]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
SubjectPATCH: sundance #4a
From

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
--- 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;
}
\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.456 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site