From e5f6efadcdc45c85772429572774c6514cfe8c1e Mon Sep 17 00:00:00 2001 From: Susheel Khiani Date: Wed, 23 Mar 2016 14:36:17 +0530 Subject: [PATCH] iommu/arm-smmu: Fix uninitialized use of variable error There are couple of instances where we are declaring variable without proper initialization and we might end up returning these uninitialized variables. Fix this by initializing them during declaration. Change-Id: Icd5b504c35683e94383d2cefd186f66000478e82 Signed-off-by: Susheel Khiani --- drivers/iommu/arm-smmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index fda10abae58a..dbd0ceeab091 100644 --- a/drivers/iommu/arm-smmu.c +++ b/drivers/iommu/arm-smmu.c @@ -1651,7 +1651,7 @@ static void arm_smmu_secure_domain_unlock(struct arm_smmu_domain *smmu_domain) static unsigned long arm_smmu_pgtbl_lock(struct arm_smmu_domain *smmu_domain) { - unsigned long flags; + unsigned long flags = 0; if (arm_smmu_is_slave_side_secure(smmu_domain)) mutex_lock(&smmu_domain->pgtbl_mutex_lock);