summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-12-15 15:23:03 +0200
committerAvi Kivity <avi@redhat.com>2011-12-19 17:23:27 +0200
commit0eeb06b0dd897826b04d3d0d6318b2fb8d271a92 (patch)
tree7ee6f2db7bfd14922b58ca4019f1b8dc11a5692f
parentce76b8a8ab61255f9029b5244b885cb8bef60e97 (diff)
downloadfocaccia-qemu-0eeb06b0dd897826b04d3d0d6318b2fb8d271a92.tar.gz
focaccia-qemu-0eeb06b0dd897826b04d3d0d6318b2fb8d271a92.zip
etraxfs_eth: drop bogus cpu_unregister_io_memory()
Leftover call to cpu_unregister_io_memory() can segfault on cleanup.  Remove.

Signed-off-by: Avi Kivity <avi@redhat.com>
-rw-r--r--hw/etraxfs_eth.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/hw/etraxfs_eth.c b/hw/etraxfs_eth.c
index 5ac2d15fa1..b5252580a5 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;