ixgbe: Fixing EEH handler to handle more than one error
authorBreno Leitao <leitao@linux.vnet.ibm.com>
Tue, 10 Nov 2009 08:37:47 +0000 (08:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Nov 2009 07:51:32 +0000 (23:51 -0800)
commitc0e1f68bce454d244e2eea6b0ab7b3a217c673d2
tree54521db399815bcf3e385746831801117af63843
parent8494347eedd2facf474021c615d1d07c62e04afd
ixgbe: Fixing EEH handler to handle more than one error

After commmit 4b77b0a2ba27d64f58f16d8d4d48d8319dda36ff EEH breaks
after the second error, since it calls pci_restore_state()
but it returns 0, since pci->state_saved is false.

So, this patch just call pci_save_state() after pci_restore_state().

Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_main.c