Skip to contentSkip to conversation

|PATCH] seeq: Add missing spinlock init

PATCH Applied Jean Delvare 2 participants 2 messages Sep 6, 2012 – Sep 7, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

It doesn't seem this spinlock was properly initialized.

---
I can't even build-test this.

 drivers/net/ethernet/seeq/sgiseeq.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/seeq/sgiseeq.c +1 -0
@@ -751,6 +751,7 @@ static int __devinit sgiseeq_probe(struc
 	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);
Signature · 1 line
Jean Delvare