commit | f8e9616108c7003e6499c162459258f11c9dc85e | [log] [tgz] |
---|---|---|
author | Vlad Lungu <vlad.lungu@windriver.com> | Mon Nov 29 22:52:52 2010 +0000 |
committer | David S. Miller <davem@davemloft.net> | Thu Dec 02 13:19:48 2010 -0800 |
tree | 76b43ae643ff2e2898b18fd45b8b680d14221c1e | |
parent | 6dcdd1b3694a4fa2b85167a9c860c7613a7553c7 [diff] |
stmmac: priv->lock can be used uninitialized To reproduce: if connman (http://connman.net/) is started, inserting the stmmac module triggers a "BUG: spinlock bad magic on CPU#0". Registering the device in stmmac_probe() sends a notification to connman which brings the interface up before the lock is initialized. Signed-off-by: Vlad Lungu <vlad.lungu@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>