]> git.proxmox.com Git - mirror_qemu.git/commitdiff
etraxfs_eth: drop bogus cpu_unregister_io_memory()
authorAvi Kivity <avi@redhat.com>
Thu, 15 Dec 2011 13:23:03 +0000 (15:23 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 19 Dec 2011 15:23:27 +0000 (17:23 +0200)
Leftover call to cpu_unregister_io_memory() can segfault on cleanup.  Remove.

Signed-off-by: Avi Kivity <avi@redhat.com>
hw/etraxfs_eth.c

index 5ac2d15fa1f86e767206dcea10e2f4d3918fa76c..b5252580a57510ee31e39880dbb9418c78fce0b6 100644 (file)
@@ -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;