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

Commit 4ea4bdf9 authored by Patrick Daly's avatar Patrick Daly
Browse files

iommu: arm-smmu: Fix uninitialized variable



s2cr.attach_count was not being initialized. Fix it.

Change-Id: Ie514a646a9cfc4ae9dba8b30b9dcd30d21fa3ab4
Signed-off-by: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 1d9aee75
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3563,6 +3563,7 @@ static int arm_smmu_handoff_cbs(struct arm_smmu_device *smmu)

		raw_s2cr = readl_relaxed(ARM_SMMU_GR0(smmu) +
					ARM_SMMU_GR0_S2CR(i));
		memset(&s2cr, 0, sizeof(s2cr));
		s2cr.group = NULL;
		s2cr.count = 1;
		s2cr.type = (raw_s2cr >> S2CR_TYPE_SHIFT) & S2CR_TYPE_MASK;