aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-msm/iommu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-msm/iommu.c')
-rw-r--r--arch/arm/mach-msm/iommu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-msm/iommu.c b/arch/arm/mach-msm/iommu.c
index 9c087405c635..0146f519e85c 100644
--- a/arch/arm/mach-msm/iommu.c
+++ b/arch/arm/mach-msm/iommu.c
@@ -636,7 +636,7 @@ irqreturn_t msm_iommu_fault_handler(int irq, void *dev_id)
636 struct msm_iommu_drvdata *drvdata = dev_id; 636 struct msm_iommu_drvdata *drvdata = dev_id;
637 void __iomem *base; 637 void __iomem *base;
638 unsigned int fsr; 638 unsigned int fsr;
639 int ncb, i, ret; 639 int i, ret;
640 640
641 spin_lock(&msm_iommu_lock); 641 spin_lock(&msm_iommu_lock);
642 642
@@ -654,8 +654,7 @@ irqreturn_t msm_iommu_fault_handler(int irq, void *dev_id)
654 if (ret) 654 if (ret)
655 goto fail; 655 goto fail;
656 656
657 ncb = GET_NCB(base)+1; 657 for (i = 0; i < drvdata->ncb; i++) {
658 for (i = 0; i < ncb; i++) {
659 fsr = GET_FSR(base, i); 658 fsr = GET_FSR(base, i);
660 if (fsr) { 659 if (fsr) {
661 pr_err("Fault occurred in context %d.\n", i); 660 pr_err("Fault occurred in context %d.\n", i);