]> Git Repo - linux.git/commitdiff
|PATCH] seeq: Add missing spinlock init
authorJean Delvare <[email protected]>
Thu, 6 Sep 2012 00:47:05 +0000 (00:47 +0000)
committerDavid S. Miller <[email protected]>
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
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);
This page took 0.04371 seconds and 4 git commands to generate.