Skip to content

Commit 3e5ccc2

Browse files
John Greenedavem330
authored andcommitted
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: f1b6b10 alx: add alx_get_stats64 operation Signed-off-by: John Greene <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b6f52ae commit 3e5ccc2

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/atheros/alx

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,6 +1292,7 @@ static int alx_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
12921292
alx = netdev_priv(netdev);
12931293
spin_lock_init(&alx->hw.mdio_lock);
12941294
spin_lock_init(&alx->irq_lock);
1295+
spin_lock_init(&alx->stats_lock);
12951296
alx->dev = netdev;
12961297
alx->hw.pdev = pdev;
12971298
alx->msg_enable = NETIF_MSG_LINK | NETIF_MSG_HW | NETIF_MSG_IFUP |

0 commit comments

Comments
 (0)