From: "Jaka Močnik" <jaka@activetools.si>
To: kumar.gala@freescale.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] initialize a spin lock in gianfar driver
Date: Thu, 03 Mar 2005 12:13:56 +0100 [thread overview]
Message-ID: <1109848436.29455.33.camel@x.at.lan> (raw)
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;
next reply other threads:[~2005-03-03 11:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-03 11:13 Jaka Močnik [this message]
2005-03-05 5:12 Kumar Gala
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1109848436.29455.33.camel@x.at.lan \
--to=jaka@activetools.si \
--cc=kumar.gala@freescale.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome