From: Juan Quintela Date: Wed, 11 Nov 2009 23:39:14 +0000 (+0100) Subject: pci: fix the conversion of config field from array to pointer X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=dbe73d7f3b85b9c1473d1400bc29ff495d8c1322;p=qemu.git pci: fix the conversion of config field from array to pointer Signed-off-by: Juan Quintela Signed-off-by: Anthony Liguori --- diff --git a/hw/pci.c b/hw/pci.c index 2ab1117e71..a326930d4f 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -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 = {