[PATCH] initialize a spin lock in gianfar driver

From: Jaka Močnik
Date: Thu Mar 03 2005 - 06:27:02 EST


Initialize the mdio_lock spin lock in mii_info struct, which is
otherwise accessed prior to initialization.

Signed-off-by: Jaka MoÄnik <jaka@xxxxxxxxxxxxxx>

--- 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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/