aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2021-03-24 17:41:11 +0000
committerGitHub <noreply@github.com>2021-03-24 17:41:11 +0000
commit4f4c378978f0e22ec5b803496e2971adca6a3f8f (patch)
tree5f01e1ff807c1b57efe96332cf6be4e0abd285f7 /include
parent0c27dacfd1cf94609a8b07ece157ed83240915e0 (diff)
downloadlibvfio-user-4f4c378978f0e22ec5b803496e2971adca6a3f8f.zip
libvfio-user-4f4c378978f0e22ec5b803496e2971adca6a3f8f.tar.gz
libvfio-user-4f4c378978f0e22ec5b803496e2971adca6a3f8f.tar.bz2
_dma_addr_sg_split(): set errno when not found (#402)
Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'include')
-rw-r--r--include/libvfio-user.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libvfio-user.h b/include/libvfio-user.h
index 06013d4..7b9532b 100644
--- a/include/libvfio-user.h
+++ b/include/libvfio-user.h
@@ -524,7 +524,7 @@ vfu_irq_trigger(vfu_ctx_t *vfu_ctx, uint32_t subindex);
*
* @returns the number of scatter/gather entries created on success, and on
* failure:
- * -1: if the GPA address span is invalid (errno=0) or
+ * -1: if the GPA address span is invalid (errno=ENOENT) or
* protection violation (errno=EACCES)
* (-x - 1): if @max_sg is too small, where x is the number of scatter/gather
* entries necessary to complete this request (errno=0).