From: Peng Hao <flyingpeng@xxxxxxxxxxx> If the probe types processed by the loop are all unknown, no error will be returned. Signed-off-by: Peng Hao <flyingpeng@xxxxxxxxxxx> --- drivers/iommu/virtio-iommu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu/virtio-iommu.c b/drivers/iommu/virtio-iommu.c index 04048f64a2c0..80352505b762 100644 --- a/drivers/iommu/virtio-iommu.c +++ b/drivers/iommu/virtio-iommu.c @@ -555,6 +555,7 @@ static int viommu_probe_endpoint(struct viommu_dev *viommu, struct device *dev) break; default: dev_err(dev, "unknown viommu prop 0x%x\n", type); + ret = -EINVAL; } if (ret) -- 2.31.1