diff options
Diffstat (limited to 'drivers/pci/dmar.c')
-rw-r--r-- | drivers/pci/dmar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/dmar.c b/drivers/pci/dmar.c index f1805002e436..d313039e2fdf 100644 --- a/drivers/pci/dmar.c +++ b/drivers/pci/dmar.c | |||
@@ -809,20 +809,20 @@ int dmar_enable_qi(struct intel_iommu *iommu) | |||
809 | if (iommu->qi) | 809 | if (iommu->qi) |
810 | return 0; | 810 | return 0; |
811 | 811 | ||
812 | iommu->qi = kmalloc(sizeof(*qi), GFP_KERNEL); | 812 | iommu->qi = kmalloc(sizeof(*qi), GFP_ATOMIC); |
813 | if (!iommu->qi) | 813 | if (!iommu->qi) |
814 | return -ENOMEM; | 814 | return -ENOMEM; |
815 | 815 | ||
816 | qi = iommu->qi; | 816 | qi = iommu->qi; |
817 | 817 | ||
818 | qi->desc = (void *)(get_zeroed_page(GFP_KERNEL)); | 818 | qi->desc = (void *)(get_zeroed_page(GFP_ATOMIC)); |
819 | if (!qi->desc) { | 819 | if (!qi->desc) { |
820 | kfree(qi); | 820 | kfree(qi); |
821 | iommu->qi = 0; | 821 | iommu->qi = 0; |
822 | return -ENOMEM; | 822 | return -ENOMEM; |
823 | } | 823 | } |
824 | 824 | ||
825 | qi->desc_status = kmalloc(QI_LENGTH * sizeof(int), GFP_KERNEL); | 825 | qi->desc_status = kmalloc(QI_LENGTH * sizeof(int), GFP_ATOMIC); |
826 | if (!qi->desc_status) { | 826 | if (!qi->desc_status) { |
827 | free_page((unsigned long) qi->desc); | 827 | free_page((unsigned long) qi->desc); |
828 | kfree(qi); | 828 | kfree(qi); |