iommu/arm-smmu: Correct sid to mask
authorPeng Fan <peng.fan@nxp.com>
Fri, 21 Apr 2017 09:03:36 +0000 (17:03 +0800)
committerJoerg Roedel <jroedel@suse.de>
Tue, 25 Apr 2017 12:26:05 +0000 (14:26 +0200)
From code "SMR mask 0x%x out of range for SMMU", so, we need to use mask, not
sid.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Robin Murphy <robin.murphy@arm.com>
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/arm-smmu.c

index dbd4998661c6f0155aa01b5ac742bb44471f7348..77242afa1efcdd5b280748eafbdac4bb0e8f1c17 100644 (file)
@@ -1535,7 +1535,7 @@ static int arm_smmu_add_device(struct device *dev)
                }
                if (mask & ~smmu->smr_mask_mask) {
                        dev_err(dev, "SMR mask 0x%x out of range for SMMU (0x%x)\n",
-                               sid, smmu->smr_mask_mask);
+                               mask, smmu->smr_mask_mask);
                        goto out_free;
                }
        }