diff options
Diffstat (limited to 'lib/libvfio-user.c')
-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 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); |