aboutsummaryrefslogtreecommitdiff
path: root/lib/pci.c
diff options
context:
space:
mode:
authorThanos Makatos <thanos.makatos@nutanix.com>2021-02-22 17:40:37 +0000
committerGitHub <noreply@github.com>2021-02-22 17:40:37 +0000
commit1194d54124f0bb5b8b53bbd7700f1ac8574478ee (patch)
tree4ef58c060d675b1e0f185f0a86a992d7d8bfa836 /lib/pci.c
parentf2cf42500dfcbafb54752a498cc60fb4acba5147 (diff)
downloadlibvfio-user-1194d54124f0bb5b8b53bbd7700f1ac8574478ee.zip
libvfio-user-1194d54124f0bb5b8b53bbd7700f1ac8574478ee.tar.gz
libvfio-user-1194d54124f0bb5b8b53bbd7700f1ac8574478ee.tar.bz2
don't use wrong buf offset for responding with PCI caps (#355)
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com> Signed-off-by: John Levon <john.levon@nutanix.com>
Diffstat (limited to 'lib/pci.c')
-rw-r--r--lib/pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pci.c b/lib/pci.c
index 8d40acb..f16f9dd 100644
--- a/lib/pci.c
+++ b/lib/pci.c
@@ -393,6 +393,7 @@ pci_config_space_access(vfu_ctx_t *vfu_ctx, char *buf, size_t count,
offset += ret;
count -= ret;
+ buf += ret;
}
return offset - start;