qlge: Add check for eeh failure when closing device.
authorRon Mercer <ron.mercer@qlogic.com>
Wed, 3 Feb 2010 07:24:12 +0000 (07:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Feb 2010 04:06:03 +0000 (20:06 -0800)
commit4bbd1a1903639f826215d76af74f4901efc34daa
treed578f3ce4ec90708260a376db46cf769f998c890
parenta112fd4ce3ed965dfb8dc6791622cb4f25ba3619
qlge: Add check for eeh failure when closing device.

Fix crash where resources are freed twice on an eeh recovery failure.
If eeh recovery fails we set a flag to indicate to close() that
resources have been freed.

Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlge/qlge.h
drivers/net/qlge/qlge_main.c