iommu/amd: Correctly set flags for handle_mm_fault call
authorJoerg Roedel <jroedel@suse.de>
Tue, 17 Nov 2015 15:11:37 +0000 (16:11 +0100)
committerJoerg Roedel <jroedel@suse.de>
Mon, 14 Dec 2015 14:39:34 +0000 (15:39 +0100)
commit43c0ea20de4de8e2d753dff0e76129c4febafffa
tree19e529231c3ccca18b823329f72f5bcfb1529880
parent7f8312a3b31de5676144d9e75f2f2647c8b4b769
iommu/amd: Correctly set flags for handle_mm_fault call

Instead of just checking for a write access, calculate the
flags that are passed to handle_mm_fault() more precisly and
use the pre-defined macros.

Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Acked-By: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu_v2.c