| To: | jgarzik@xxxxxxxxx |
|---|---|
| Subject: | [PATCH] initialize a spin lock in gianfar driver |
| From: | Kumar Gala <galak@xxxxxxxxxxxxx> |
| Date: | Fri, 4 Mar 2005 23:12:59 -0600 (CST) |
| Cc: | jaka@xxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linuxppc-embedded@xxxxxxxxxx, netdev@xxxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
Initialize the mdio_lock spin lock in mii_info struct, which is otherwise
accessed prior to initialization.
Signed-off-by: Jaka Mocnik <jaka@xxxxxxxxxxxxxx>
Signed-off-by: Kumar Gala <kumar.gala@xxxxxxxxxxxxx>
---
diff -Nru a/drivers/net/gianfar.c b/drivers/net/gianfar.c
--- a/drivers/net/gianfar.c 2005-03-04 23:03:27 -06:00
+++ b/drivers/net/gianfar.c 2005-03-04 23:03:27 -06:00
@@ -377,6 +377,8 @@
ADVERTISED_1000baseT_Full);
mii_info->autoneg = 1;
+ spin_lock_init(&mii_info->mdio_lock);
+
mii_info->mii_id = priv->einfo->phyid;
mii_info->dev = dev;
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: r8169: panic on 2.6.11, Jon Mason |
|---|---|
| Next by Date: | Fw: non-fatal oops with EIP at skb_release_data, available for debugging, Andrew Morton |
| Previous by Thread: | Fwd: non-fatal oops with EIP at skb_release_data, available for debugging, Alessandro Suardi |
| Next by Thread: | Re: Fw: [Bugme-new] [Bug 4223] New: sis900 kernel oop at boot, Herbert Xu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |