diff options
author | 2010-11-17 15:43:52 +0000 | |
---|---|---|
committer | 2010-12-10 22:13:01 -0800 | |
commit | 9633e63bb1d82c02950983d5d3317e6656b11c8e (patch) | |
tree | fb13f79801a120a73a2e72c78c60df3cdc30ec44 /drivers/net/e1000e/netdev.c | |
parent | ixgbe: cleanup string function calls to use bound checking versions. (diff) | |
download | linux-9633e63bb1d82c02950983d5d3317e6656b11c8e.tar.gz linux-9633e63bb1d82c02950983d5d3317e6656b11c8e.tar.bz2 linux-9633e63bb1d82c02950983d5d3317e6656b11c8e.zip |
e1000e: fix double initialization in blink path
The kernel goes BUG() at the time 'ethtool -p eth0 3' comes
back, which is due to adapter->led_blink_task initialized
several times. At the time it is still running this results
in a corrupted task_list of the associated workqueue.
The fix is to move the workqueue initialization to the
probe function instead.
Signed-off-by: Holger Eitzenberger <holger@eitzenberger.org>
Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Emil Tantilov <emil.s.tantilov@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/e1000e/netdev.c')
-rw-r--r-- | drivers/net/e1000e/netdev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c index 0adcb79e6386..f8efbbbfddfb 100644 --- a/drivers/net/e1000e/netdev.c +++ b/drivers/net/e1000e/netdev.c @@ -5903,6 +5903,7 @@ static int __devinit e1000_probe(struct pci_dev *pdev, INIT_WORK(&adapter->downshift_task, e1000e_downshift_workaround); INIT_WORK(&adapter->update_phy_task, e1000e_update_phy_task); INIT_WORK(&adapter->print_hang_task, e1000_print_hw_hang); + INIT_WORK(&adapter->led_blink_task, e1000e_led_blink_task); /* Initialize link parameters. User can change them with ethtool */ adapter->hw.mac.autoneg = 1; |