UPSTREAM: iommu/amd: Pass gfp flags to iommu_map_page() in amd_iommu_map()
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:Qian Cai <cai@lca.pw> Reported-by:
Dan Carpenter <dan.carpenter@oracle.com> Fixes: 781ca2de ("iommu: Add gfp parameter to iommu_ops::map") Reviewed-by:
Jerry Snitselaar <jsnitsel@redhat.com> Signed-off-by:
Joerg Roedel <jroedel@suse.de> (cherry picked from commit 3057fb93) Bug: 187129171 Signed-off-by:
Connor O'Brien <connoro@google.com> Change-Id: I564da81c19bc9bba2872d3c061eefc9f8a35448e
Loading
Please sign in to comment