|PATCH] seeq: Add missing spinlock init
authorJean Delvare <khali@linux-fr.org>
Thu, 6 Sep 2012 00:47:05 +0000 (00:47 +0000)
committerDavid 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

index bb8c8222122b920511f729463a04b97395724c7d..4d15bf413bdc89f060964c8114d4486be337ce46 100644 (file)
@@ -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);