Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26319445 authored by Patrick Daly's avatar Patrick Daly
Browse files

iommu: arm-smmu: Fix a possible null pointer dereference



generic_device_group() may return NULL on an error case. Check for this.

Change-Id: I33e8e859e99d4f7c4616aeee1da8214497e30625
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent a8a228d6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2480,7 +2480,7 @@ static struct iommu_group *arm_smmu_device_group(struct device *dev)
	else
		group = generic_device_group(dev);

	if (IS_ERR(group))
	if (IS_ERR_OR_NULL(group))
		return group;

	if (dev_is_pci(dev))