projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3775d48
)
iommu/amd: Add missing spin_lock initialization
author
Joerg Roedel
<joerg.roedel@amd.com>
Thu, 19 Jul 2012 08:56:10 +0000
(10:56 +0200)
committer
Joerg Roedel
<joerg.roedel@amd.com>
Thu, 19 Jul 2012 08:56:10 +0000
(10:56 +0200)
Add missing spin_lock initialization in
amd_iommu_bind_pasid() function and make lockdep happy
again.
Cc: stable@vger.kernel.org # >= v3.3
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/amd_iommu_v2.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/amd_iommu_v2.c
b/drivers/iommu/amd_iommu_v2.c
index 036fe9bf157e0341862c8452ed47ca02b32db3c3..a1f1bc876043ca17eaab498b105b5e7767846a50 100644
(file)
--- a/
drivers/iommu/amd_iommu_v2.c
+++ b/
drivers/iommu/amd_iommu_v2.c
@@
-681,6
+681,8
@@
int amd_iommu_bind_pasid(struct pci_dev *pdev, int pasid,
atomic_set(&pasid_state->count, 1);
init_waitqueue_head(&pasid_state->wq);
+ spin_lock_init(&pasid_state->lock);
+
pasid_state->task = task;
pasid_state->mm = get_task_mm(task);
pasid_state->device_state = dev_state;