diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c index 9a48439c52e2b2b51f0cb35ff7e545da42052a1c..02ff5372d5fe49894dd13abe3d21b79b2c201aa0 100644 --- a/drivers/vhost/vdpa.c +++ b/drivers/vhost/vdpa.c @@ -565,6 +565,9 @@ static int vhost_vdpa_map(struct vhost_vdpa *v, perm_to_iommu_flags(perm)); } + if (r) + vhost_iotlb_del_range(dev->iotlb, iova, iova + size - 1); + return r; }