Skip to contentSkip to conversation

iommu/arm-smmu: fix error return code in arm_smmu_device_dt_probe()

PATCH New Wei Yongjun 2 participants 2 messages Nov 15, 2013 IOMMU

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iommu/arm-smmu: fix error return code in arm_smmu_device_dt_probe()

From: Wei Yongjun <[email protected]>

Fix to return -ENODEV instead of 0 when context interrupt number does no match in arm_smmu_device_dt_probe().

---
 drivers/iommu/arm-smmu.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iommu/arm-smmu.c +1 -0
index 2349d62..2bc977b 100644
@@ -1858,6 +1858,7 @@ static int arm_smmu_device_dt_probe(struct platform_device *pdev)
 		dev_err(dev,
 			"found only %d context interrupt(s) but %d required\n",
 			smmu->num_context_irqs, smmu->num_context_banks);
+		err = -ENODEV;
 		goto out_put_parent;
 	}
 
Applied
#1 lore raw

PATCH 1/1 iommu/arm-smmu: fix error return code in arm_smmu_device_dt_probe()

Quoted 15 lines · Wei Yongjun

From: Wei Yongjun <[email protected]>

Fix to return -ENODEV instead of 0 when context interrupt number does no match in arm_smmu_device_dt_probe().

---
 drivers/iommu/arm-smmu.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iommu/arm-smmu.c +0 -0
index 2349d62..2bc977b 100644

drivers/iommu/arm-smmu.c static int arm_smmu_device_dt_probe(struct platform_device *pdev) · line 1863

Quoted 6 lines
drivers/iommu/arm-smmu.c +1 -0
@@ -1858,6 +1858,7 @@ static int arm_smmu_device_dt_probe(struct platform_device *pdev)
 		dev_err(dev,
 			"found only %d context interrupt(s) but %d required\n",
 			smmu->num_context_irqs, smmu->num_context_banks);
+		err = -ENODEV;
 		goto out_put_parent;
 	}

Applied to my devel branch. Thanks!

Will