From: Jean Delvare Date: Thu, 6 Sep 2012 00:47:05 +0000 (+0000) Subject: |PATCH] seeq: Add missing spinlock init X-Git-Tag: MMI-PSA29.97-13-9~16016^2~23 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b8dfc6a0a7235aed452c0e376b6feff182a86992;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git |PATCH] seeq: Add missing spinlock init It doesn't seem this spinlock was properly initialized. Signed-off-by: Jean Delvare Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/seeq/sgiseeq.c b/drivers/net/ethernet/seeq/sgiseeq.c index bb8c8222122b..4d15bf413bdc 100644 --- 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);