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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Apr 2012 16:51:20 +0000 (09:51 -0700)
commitbb2f6102c815c14572642205191eb0fa883d8723
tree4158479d3746658d5b2c1efcf3c9c86010105be5
parent4a1abcbd24d856fe49029c3dc6f7fe8dc66ddaac
atl1: fix kernel panic in case of DMA errors

[ Upstream commit 03662e41c7cff64a776bfb1b3816de4be43de881 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/atlx/atl1.c
drivers/net/atlx/atl1.h
drivers/net/atlx/atlx.c