going to be difficult. I'll test early next week and try to get you a pull
request later that week for 3.18.
Will
--->8
@@ -474,8 +474,15 @@ static struct arm_smmu_master *find_smmu_master(struct arm_smmu_device *smmu,
static struct arm_smmu_master_cfg *
find_smmu_master_cfg(struct device *dev)
{
+ struct arm_smmu_master_cfg *cfg = NULL;
struct iommu_group *group = iommu_group_get(dev);
- return group ? iommu_group_get_iommudata(group) : NULL;
+
+ if (group) {
+ cfg = iommu_group_get_iommudata(group);
+ iommu_group_put(group);
+ }
+
+ return cfg;
}