]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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 17:17:04 +0000 (10:17 -0700)
commit60cf9a4017ed9b3bcd1c28e7a443f4dfe239b8df
tree8a56d002feac268b3ead1c48b514b05b55282e35
parent8607ccff19e16b51feab33664425e5984f751074
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/ethernet/atheros/atlx/atl1.c
drivers/net/ethernet/atheros/atlx/atl1.h
drivers/net/ethernet/atheros/atlx/atlx.c