diff options
author | Juan Quintela <quintela@redhat.com> | 2009-11-12 00:39:14 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-11-12 11:23:57 -0600 |
commit | dbe73d7f3b85b9c1473d1400bc29ff495d8c1322 (patch) | |
tree | c799a4dfec69f0d3b00df869234f27cf7db3e185 /hw | |
parent | 504c2948d3fb8d188d6e886cf6584edd344c1b46 (diff) |
pci: fix the conversion of config field from array to pointer
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -273,9 +273,9 @@ static int get_pci_config_device(QEMUFile *f, void *pv, size_t size) /* just put buffer */ static void put_pci_config_device(QEMUFile *f, void *pv, size_t size) { - const uint8_t *v = pv; + const uint8_t **v = pv; assert(size == pci_config_size(container_of(pv, PCIDevice, config))); - qemu_put_buffer(f, v, size); + qemu_put_buffer(f, *v, size); } static VMStateInfo vmstate_info_pci_config = { |