iommu/amd: Take mmap_sem when calling get_user_pages
authorJay Cornwall <jay.cornwall@amd.com>
Mon, 28 Apr 2014 22:27:46 +0000 (17:27 -0500)
committerJoerg Roedel <joro@8bytes.org>
Tue, 13 May 2014 10:33:11 +0000 (12:33 +0200)
commit4378d99295fae5fd42b0ed1a3eeef2a1684e0c17
tree2d2206643e5ad7353fba8393b1e6820daae45dc9
parente028a9e6b8a637af09ac4114083280df4a7045f1
iommu/amd: Take mmap_sem when calling get_user_pages

get_user_pages requires caller to hold a read lock on mmap_sem.

Signed-off-by: Jay Cornwall <jay.cornwall@amd.com>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
drivers/iommu/amd_iommu_v2.c