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>
This commit is contained in:
parent
ce76b8a8ab
commit
0eeb06b0dd
|
@ -323,7 +323,6 @@ struct fs_eth
|
||||||
MemoryRegion mmio;
|
MemoryRegion mmio;
|
||||||
NICState *nic;
|
NICState *nic;
|
||||||
NICConf conf;
|
NICConf conf;
|
||||||
int ethregs;
|
|
||||||
|
|
||||||
/* Two addrs in the filter. */
|
/* Two addrs in the filter. */
|
||||||
uint8_t macaddr[2][6];
|
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;
|
struct fs_eth *eth = DO_UPCAST(NICState, nc, nc)->opaque;
|
||||||
|
|
||||||
cpu_unregister_io_memory(eth->ethregs);
|
|
||||||
|
|
||||||
/* Disconnect the client. */
|
/* Disconnect the client. */
|
||||||
eth->dma_out->client.push = NULL;
|
eth->dma_out->client.push = NULL;
|
||||||
eth->dma_out->client.opaque = NULL;
|
eth->dma_out->client.opaque = NULL;
|
||||||
|
|
Loading…
Reference in a new issue