diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c index 66774f5ae14e5ad4d9d2d0641a830f050d38fc9e..120b54a3d7d5f550b8204b4db361df7220ec2761 100644 --- a/drivers/vhost/vdpa.c +++ b/drivers/vhost/vdpa.c @@ -673,7 +673,7 @@ static int vhost_vdpa_va_map(struct vhost_vdpa *v, u64 offset, map_size, map_iova = iova; struct vdpa_map_file *map_file; struct vm_area_struct *vma; - int ret; + int ret = 0; mmap_read_lock(dev->mm);