• Brice Goglin's avatar
    myri10ge: match number of save_state and restore · 7adda30c
    Brice Goglin authored
    Since pci_save_state() pushes MSI and PCIe states on a kind of stack,
    myri10ge saving the state in advance for parity recovery will push the
    state again on the stack on suspend. This leads to some memory leak.
    We add a couple additional calls to save_state and restore_state so
    that we don't leak anymore.
    
    For the future, we are thinking of a better way to recover from parity
    error without using pci_save_state().
    Signed-off-by: default avatarBrice Goglin <brice@myri.com>
    Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
    7adda30c
myri10ge.c 85 KB