atl1: fix kernel panic in case of DMA errors
authorTony Zelenoff <antonz@parallels.com>
Wed, 11 Apr 2012 06:15:03 +0000 (06:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Apr 2012 17:34:20 +0000 (13:34 -0400)
commit03662e41c7cff64a776bfb1b3816de4be43de881
treefeb67db3b6a9710b58f0b5458ec366bceb391246
parentca8f4fb21d08747013cce9cf1840aa5bfc31f2d8
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>
drivers/net/ethernet/atheros/atlx/atl1.c
drivers/net/ethernet/atheros/atlx/atl1.h
drivers/net/ethernet/atheros/atlx/atlx.c