diff mbox

[3/3] pci: fix the conversion of config field from array to pointer

Message ID a731b1f31ce66f1ad336a4692d4d3089ee59706f.1257982286.git.quintela@redhat.com
State New
Headers show

Commit Message

Juan Quintela Nov. 11, 2009, 11:39 p.m. UTC
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 hw/pci.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

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