aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
Diffstat (limited to 'hw')
-rw-r--r--hw/ivshmem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ivshmem.c b/hw/ivshmem.c
index a3a0e98451..7b4dbf66a9 100644
--- a/hw/ivshmem.c
+++ b/hw/ivshmem.c
@@ -699,7 +699,7 @@ static int pci_ivshmem_init(PCIDevice *dev)
s->peers = g_malloc0(s->nb_peers * sizeof(Peer));
pci_register_bar(&s->dev, 2,
- PCI_BASE_ADDRESS_SPACE_MEMORY, &s->ivshmem);
+ PCI_BASE_ADDRESS_SPACE_MEMORY, &s->bar);
s->eventfd_chr = g_malloc0(s->vectors * sizeof(CharDriverState *));