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>
This commit is contained in:
Juan Quintela 2009-11-12 00:39:14 +01:00 committed by Anthony Liguori
parent 504c2948d3
commit dbe73d7f3b

View File

@ -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 = {