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:
parent
504c2948d3
commit
dbe73d7f3b
4
hw/pci.c
4
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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user