Commit 9511cf7e authored by Joerg Roedel's avatar Joerg Roedel Committed by Greg Kroah-Hartman
Browse files

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: 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>
(cherry picked from commit 3057fb93)
Bug: 187129171
Signed-off-by: default avatarConnor O'Brien <connoro@google.com>
Change-Id: I564da81c19bc9bba2872d3c061eefc9f8a35448e
parent ad15ee21
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment