Skip to content
Snippets Groups Projects
Commit 8b47e324 authored by Joerg Roedel's avatar Joerg Roedel Committed by Greg Kroah-Hartman
Browse files

iommu/amd: Pass gfp flags to iommu_map_page() in amd_iommu_map()


commit 3057fb93 upstream.

A recent commit added a gfp parameter to amd_iommu_map() to make it
callable from atomic context, but forgot to pass it down to
iommu_map_page() and left GFP_KERNEL there. This caused
sleep-while-atomic warnings and needs to be fixed.

Reported-by: default avatarQian Cai <cai@lca.pw>
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Fixes: 781ca2de ("iommu: Add gfp parameter to iommu_ops::map")
Reviewed-by: default avatarJerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7519069f
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment