Merge "iommu: arm-smmu: Fix a possible null pointer dereference" into msm-4.8
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c
index bc8e8e0..f4e6ee6 100644
--- a/drivers/iommu/arm-smmu.c
+++ b/drivers/iommu/arm-smmu.c
@@ -2480,7 +2480,7 @@
 	else
 		group = generic_device_group(dev);
 
-	if (IS_ERR(group))
+	if (IS_ERR_OR_NULL(group))
 		return group;
 
 	if (dev_is_pci(dev))