diff mbox

[1/2] etraxfs_eth: drop bogus cpu_unregister_io_memory()

Message ID 1323956131-471-2-git-send-email-avi@redhat.com
State New
Headers show

Commit Message

Avi Kivity Dec. 15, 2011, 1:35 p.m. UTC
Leftover call to cpu_unregister_io_memory() can segfault on cleanup.  Remove.

Signed-off-by: Avi Kivity <avi@redhat.com>
---
 hw/etraxfs_eth.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/hw/etraxfs_eth.c b/hw/etraxfs_eth.c
index 5ac2d15..b525258 100644
--- a/hw/etraxfs_eth.c
+++ b/hw/etraxfs_eth.c
@@ -323,7 +323,6 @@  struct fs_eth
 	MemoryRegion mmio;
 	NICState *nic;
 	NICConf conf;
-	int ethregs;
 
 	/* Two addrs in the filter.  */
 	uint8_t macaddr[2][6];
@@ -571,8 +570,6 @@  static void eth_cleanup(VLANClientState *nc)
 {
 	struct fs_eth *eth = DO_UPCAST(NICState, nc, nc)->opaque;
 
-        cpu_unregister_io_memory(eth->ethregs);
-
 	/* Disconnect the client.  */
 	eth->dma_out->client.push = NULL;
 	eth->dma_out->client.opaque = NULL;