From patchwork Wed Nov 11 23:39:14 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [3/3] pci: fix the conversion of config field from array to pointer Date: Wed, 11 Nov 2009 13:39:14 -0000 From: Juan Quintela X-Patchwork-Id: 38196 Message-Id: To: qemu-devel@nongnu.org Cc: blauwirbel@gmail.com, jan.kiszka@siemens.com, glommer@redhat.com, aliguori@us.ibm.com Signed-off-by: Juan Quintela --- hw/pci.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 2ab1117..a326930 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 = {