]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: Pass gfp flags to iommu_map_page() in amd_iommu_map()
authorJoerg Roedel <jroedel@suse.de>
Fri, 18 Oct 2019 09:00:33 +0000 (11:00 +0200)
committerJoerg Roedel <jroedel@suse.de>
Fri, 18 Oct 2019 09:40:38 +0000 (11:40 +0200)
commit58306c128cd6654bd53da3e3c5cff927c3726ba2
tree81bc0ec877df6dc19f3323a9fa0ff8050677c531
parent0f33f353dac1ccdfd9b5a719d502114cea9f53e6
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: 5beea495f938 ("iommu: Add gfp parameter to iommu_ops::map")
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c