From 17769cf1af093dfb4b9bc3347ae39324029989ac Mon Sep 17 00:00:00 2001 From: John Levon Date: Wed, 22 Dec 2021 10:17:11 +0000 Subject: fix coverity issues (#636) Fix three remaining low priority coverity issues; they do not represent bugs. Signed-off-by: John Levon Reviewed-by: Swapnil Ingle --- lib/libvfio-user.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/libvfio-user.c b/lib/libvfio-user.c index f1c99ec..e4abfad 100644 --- a/lib/libvfio-user.c +++ b/lib/libvfio-user.c @@ -2013,6 +2013,7 @@ vfu_dma_transfer(vfu_ctx_t *vfu_ctx, enum vfio_user_command cmd, size_t rlen; void *rbuf; + assert(cmd == VFIO_USER_DMA_READ || cmd == VFIO_USER_DMA_WRITE); assert(vfu_ctx != NULL); assert(sg != NULL); -- cgit v1.1