* [PATCH] initialize a spin lock in gianfar driver
@ 2005-03-05 5:12 Kumar Gala
0 siblings, 0 replies; 2+ messages in thread
From: Kumar Gala @ 2005-03-05 5:12 UTC (permalink / raw)
To: jgarzik; +Cc: jaka, linux-kernel, linuxppc-embedded, netdev
Initialize the mdio_lock spin lock in mii_info struct, which is otherwise
accessed prior to initialization.
Signed-off-by: Jaka Mocnik <jaka@activetools.si>
Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
---
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;
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] initialize a spin lock in gianfar driver
@ 2005-03-03 11:13 Jaka Močnik
0 siblings, 0 replies; 2+ messages in thread
From: Jaka Močnik @ 2005-03-03 11:13 UTC (permalink / raw)
To: kumar.gala; +Cc: linux-kernel
Initialize the mdio_lock spin lock in mii_info struct, which is
otherwise accessed prior to initialization.
Signed-off-by: Jaka Močnik <jaka@activetools.si>
--- linux-2.6.11/drivers/net/gianfar.c 2005-03-03 10:36:51.000000000 +0100
+++ linux-2.6.11-sgn/drivers/net/gianfar.c 2005-03-03 10:36:38.822996013 +0100
@@ -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;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-05 5:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-05 5:12 [PATCH] initialize a spin lock in gianfar driver Kumar Gala
-- strict thread matches above, loose matches on Subject: below --
2005-03-03 11:13 Jaka Močnik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).