projects/linux·commit 3e5ccc29

alx: add missing stats_lock spinlock init

3e5ccc29 · John Greene <[email protected]> · 2014-02-10 14:34:04 -05:00

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]>
Signed-off-by: David S. Miller <[email protected]>
Commit
3e5ccc29f71b5dfdfb81dac8c19372af83923b7f
Parents
b6f52ae2

Changes

1 files changed · +1 −0

FileStatusAddDelContent
drivers/net/ethernet/atheros/alx/main.cmodified+1−0View file

drivers/net/ethernet/atheros/alx/main.c

View file
diff --git a/drivers/net/ethernet/atheros/alx/main.c b/drivers/net/ethernet/atheros/alx/main.c
index e92ffd6..2e45f6e 100644
--- a/drivers/net/ethernet/atheros/alx/main.c
+++ b/drivers/net/ethernet/atheros/alx/main.c
@@ -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 |