projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
979402b
)
|PATCH] seeq: Add missing spinlock init
author
Jean Delvare
<khali@linux-fr.org>
Thu, 6 Sep 2012 00:47:05 +0000
(
00:47
+0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 7 Sep 2012 16:56:00 +0000
(12:56 -0400)
It doesn't seem this spinlock was properly initialized.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/seeq/sgiseeq.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/seeq/sgiseeq.c
b/drivers/net/ethernet/seeq/sgiseeq.c
index bb8c8222122b920511f729463a04b97395724c7d..4d15bf413bdc89f060964c8114d4486be337ce46 100644
(file)
--- a/
drivers/net/ethernet/seeq/sgiseeq.c
+++ b/
drivers/net/ethernet/seeq/sgiseeq.c
@@
-751,6
+751,7
@@
static int __devinit sgiseeq_probe(struct platform_device *pdev)
sp->srings = sr;
sp->rx_desc = sp->srings->rxvector;
sp->tx_desc = sp->srings->txvector;
+ spin_lock_init(&sp->tx_lock);
/* A couple calculations now, saves many cycles later. */
setup_rx_ring(dev, sp->rx_desc, SEEQ_RX_BUFFERS);