summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/atheros/atlx/atlx.c
diff options
context:
space:
mode:
authorTony Zelenoff <antonz@parallels.com>2012-04-11 06:15:03 +0000
committerDavid S. Miller <davem@davemloft.net>2012-04-13 13:34:20 -0400
commit03662e41c7cff64a776bfb1b3816de4be43de881 (patch)
treefeb67db3b6a9710b58f0b5458ec366bceb391246 /drivers/net/ethernet/atheros/atlx/atlx.c
parentca8f4fb21d08747013cce9cf1840aa5bfc31f2d8 (diff)
atl1: fix kernel panic in case of DMA errors
Problem: There was two separate work_struct structures which share one handler. Unfortunately getting atl1_adapter structure from work_struct in case of DMA error was done from incorrect offset which cause kernel panics. Solution: The useless work_struct for DMA error removed and handler name changed to more generic one. Signed-off-by: Tony Zelenoff <antonz@parallels.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/atheros/atlx/atlx.c')
-rw-r--r--drivers/net/ethernet/atheros/atlx/atlx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/atheros/atlx/atlx.c b/drivers/net/ethernet/atheros/atlx/atlx.c
index 3cd8837236dc..c9e9dc57986c 100644
--- a/drivers/net/ethernet/atheros/atlx/atlx.c
+++ b/drivers/net/ethernet/atheros/atlx/atlx.c
@@ -194,7 +194,7 @@ static void atlx_tx_timeout(struct net_device *netdev)
{
struct atlx_adapter *adapter = netdev_priv(netdev);
/* Do the reset outside of interrupt context */
- schedule_work(&adapter->tx_timeout_task);
+ schedule_work(&adapter->reset_dev_task);
}
/*