diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2020-12-16 11:00:13 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-16 11:00:13 +0000 |
commit | d1eda3154fc9ea8ff45bfab5d5ec1a712584d468 (patch) | |
tree | 0c198d0b7df3e448aaa5592c7e2faa574684d09e /lib | |
parent | 8694149b351e3e125aa8f1740f8d5925e7ec112c (diff) | |
download | libvfio-user-d1eda3154fc9ea8ff45bfab5d5ec1a712584d468.zip libvfio-user-d1eda3154fc9ea8ff45bfab5d5ec1a712584d468.tar.gz libvfio-user-d1eda3154fc9ea8ff45bfab5d5ec1a712584d468.tar.bz2 |
don't treat non-zero return value of dma_controller_add_region as failure (#206)
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libvfio-user.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libvfio-user.c b/lib/libvfio-user.c index 846a70f..c5cd3c3 100644 --- a/lib/libvfio-user.c +++ b/lib/libvfio-user.c @@ -612,6 +612,7 @@ handle_dma_map_or_unmap(vfu_ctx_t *vfu_ctx, uint32_t size, bool map, strerror(-ret)); break; } + ret = 0; vfu_log(vfu_ctx, LOG_DEBUG, "added DMA region %#lx-%#lx offset=%#lx fd=%d", dma_regions[i].addr, |