summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2012-07-19 10:56:10 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-08-09 08:31:31 -0700
commite6c1b59aaa759ae5374dedf8508ee14aff2f967f (patch)
tree3d489f4259adb2219056879eb2e6c928e1db9d69 /drivers
parent351bb0ecc5b0b9dc60d07a44078fa16971c7f3e7 (diff)
downloadlinux-3.10-e6c1b59aaa759ae5374dedf8508ee14aff2f967f.tar.gz
linux-3.10-e6c1b59aaa759ae5374dedf8508ee14aff2f967f.tar.bz2
linux-3.10-e6c1b59aaa759ae5374dedf8508ee14aff2f967f.zip
iommu/amd: Add missing spin_lock initialization
commit 2c13d47a1a7ee8808796016c617aef25fd1d1925 upstream. Add missing spin_lock initialization in amd_iommu_bind_pasid() function and make lockdep happy again. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/iommu/amd_iommu_v2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iommu/amd_iommu_v2.c b/drivers/iommu/amd_iommu_v2.c
index 036fe9bf157..a1f1bc87604 100644
--- 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;