Message ID | 1243404615-25879-6-git-send-email-vapier@gentoo.org |
---|---|
State | Rejected, archived |
Delegated to: | David Miller |
Headers | show |
From: Mike Frysinger <vapier@gentoo.org> Date: Wed, 27 May 2009 02:10:15 -0400 > If we build the Blackfin EMAC driver as a module and then unload it at > runtime, it would cause a crash: > root:/> rmmod bfin_mac Actually, I reverted patch #4. This bug is caused by patch #4, integrate this bug fix into patch #4 and resubmit as one whole change. Otherwise the tree is not properly bisectable. Thank you. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Fri, May 29, 2009 at 05:10, David Miller wrote: > From: Mike Frysinger <vapier@gentoo.org> >> If we build the Blackfin EMAC driver as a module and then unload it at >> runtime, it would cause a crash: >> root:/> rmmod bfin_mac > > Actually, I reverted patch #4. > > This bug is caused by patch #4, integrate this bug fix into > patch #4 and resubmit as one whole change. will do, thanks -mike -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/bfin_mac.c b/drivers/net/bfin_mac.c index 7f8ea0f..e764f8c 100644 --- a/drivers/net/bfin_mac.c +++ b/drivers/net/bfin_mac.c @@ -1074,8 +1074,7 @@ static int __devexit bfin_mac_remove(struct platform_device *pdev) platform_set_drvdata(pdev, NULL); - mdiobus_unregister(lp->mii_bus); - mdiobus_free(lp->mii_bus); + lp->mii_bus->priv = NULL; unregister_netdev(ndev);