Skip to contentSkip to conversation

iommu/tegra: Add missing spinlock initialization

PATCH Applied Sami Liedes 2 participants 2 messages Feb 4, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iommu/tegra: Add missing spinlock initialization

Fix tegra_smmu_probe() to initialize client_lock spinlocks in per-address-space structures.

---
 drivers/iommu/tegra-smmu.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/iommu/tegra-smmu.c +2 -1
index f08dbcd..46cc8cf 100644
@@ -1,7 +1,7 @@
 /*
  * IOMMU API for SMMU in Tegra30
  *
- * Copyright (c) 2011-2012, NVIDIA CORPORATION.  All rights reserved.
+ * Copyright (c) 2011-2013, NVIDIA CORPORATION.  All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms and conditions of the GNU General Public License,
@@ -1217,6 +1217,7 @@ static int tegra_smmu_probe(struct platform_device *pdev)
 		as->pte_attr = _PTE_ATTR;
 
 		spin_lock_init(&as->lock);
+		spin_lock_init(&as->client_lock);
 		INIT_LIST_HEAD(&as->client);
 	}
 	spin_lock_init(&smmu->lock);
Signature · 1 line
1.7.9.5