]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
myri10ge: match number of save_state and restore
authorBrice Goglin <brice@myri.com>
Mon, 18 Dec 2006 10:50:00 +0000 (11:50 +0100)
committerJeff Garzik <jeff@garzik.org>
Tue, 26 Dec 2006 21:28:20 +0000 (16:28 -0500)
commit7adda30c82f403c948b016a40fc68a1ef427dbca
tree1f0ad543783903fec30fc593d0315feaa2fd6890
parenta27993f3d9daca0dffa26577a83822db99c952e2
myri10ge: match number of save_state and restore

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: Brice Goglin <brice@myri.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/myri10ge/myri10ge.c