]> Pileus Git - ~andy/linux/commitdiff
alx: add missing stats_lock spinlock init
authorJohn Greene <jogreene@redhat.com>
Mon, 10 Feb 2014 19:34:04 +0000 (14:34 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Feb 2014 01:50:35 +0000 (17:50 -0800)
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 <jogreene@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/alx/main.c

index e92ffd6e1c15fdbd2aaaa21f9335fb25bc142d20..2e45f6ec1bf076de4eaf07b9380466b01eff41b2 100644 (file)
@@ -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 |