]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: priv->lock can be used uninitialized
authorVlad Lungu <vlad.lungu@windriver.com>
Mon, 29 Nov 2010 22:52:52 +0000 (22:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Dec 2010 21:19:48 +0000 (13:19 -0800)
commite1e6a8d8cd172a3b9c2f0a439867dd9f67cf0473
tree76b43ae643ff2e2898b18fd45b8b680d14221c1e
parent970f968118781c65ea4a8fd01eb6f1434828a2ed
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>
drivers/net/stmmac/stmmac_main.c