diff options
author | John Greene <jogreene@redhat.com> | 2014-02-10 14:34:04 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-10 20:50:35 -0500 |
commit | 3e5ccc29f71b5dfdfb81dac8c19372af83923b7f (patch) | |
tree | 16e39d2eeb388e37f748dd6c5cceb14f5e1294ca | |
parent | b6f52ae2f0d32387bde2b89883e3b64d88b9bfe8 (diff) |
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 <jogreene@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/atheros/alx/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/atheros/alx/main.c b/drivers/net/ethernet/atheros/alx/main.c index e92ffd6e1c15..2e45f6ec1bf0 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) | |||
1292 | alx = netdev_priv(netdev); | 1292 | alx = netdev_priv(netdev); |
1293 | spin_lock_init(&alx->hw.mdio_lock); | 1293 | spin_lock_init(&alx->hw.mdio_lock); |
1294 | spin_lock_init(&alx->irq_lock); | 1294 | spin_lock_init(&alx->irq_lock); |
1295 | spin_lock_init(&alx->stats_lock); | ||
1295 | alx->dev = netdev; | 1296 | alx->dev = netdev; |
1296 | alx->hw.pdev = pdev; | 1297 | alx->hw.pdev = pdev; |
1297 | alx->msg_enable = NETIF_MSG_LINK | NETIF_MSG_HW | NETIF_MSG_IFUP | | 1298 | alx->msg_enable = NETIF_MSG_LINK | NETIF_MSG_HW | NETIF_MSG_IFUP | |