summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/vhost.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/vhost.c b/hw/vhost.c
index 7e282dd3d5..43664e7f4d 100644
--- a/hw/vhost.c
+++ b/hw/vhost.c
@@ -35,6 +35,7 @@ static void vhost_dev_sync_region(struct vhost_dev *dev,
return;
}
assert(end / VHOST_LOG_CHUNK < dev->log_size);
+ assert(start / VHOST_LOG_CHUNK < dev->log_size);
for (;from < to; ++from) {
vhost_log_chunk_t log;