alx: add missing stats_lock spinlock init
Subsystems (3)
PATCH 1/1 alx: add missing stats_lock spinlock init
Trivial fix for init time stack trace occuring in alx_get_stats64 upon start up. Should have been part of commit adding the spinlock:f1b6b106 alx: add alx_get_stats64 operation
Signed-off-by John Greene <[email protected]>
--- drivers/net/ethernet/atheros/alx/main.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/atheros/alx/main.c +1 -0
@@ -1292,6 +1292,7 @@ static int alx_probe(struct pci_dev *pdev, const struct pci_device_id *ent) alx =netdev_priv (netdev);spin_lock_init (&alx->hw.mdio_lock);spin_lock_init (&alx->irq_lock); +spin_lock_init (&alx->stats_lock); alx->dev = netdev; alx->hw.pdev = pdev; alx->msg_enable = NETIF_MSG_LINK | NETIF_MSG_HW | NETIF_MSG_IFUP |
Signature · 1 line
1.8.1.4
From: John Greene <[email protected]>
Date: Mon, 10 Feb 2014 14:34:04 -0500
Quoted 6 lines
Trivial fix for init time stack trace occuring in
alx_get_stats64upon start up. Should have been part of commit adding the spinlock:f1b6b106alx: addalx_get_stats64operationSigned-off-by John Greene <[email protected]>
Applied, thank you.