aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/dmar.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iommu/dmar.c')
-rw-r--r--drivers/iommu/dmar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c
index 174bb654453d..dc7e478b7e5f 100644
--- a/drivers/iommu/dmar.c
+++ b/drivers/iommu/dmar.c
@@ -1042,7 +1042,7 @@ int dmar_enable_qi(struct intel_iommu *iommu)
1042 1042
1043 qi->desc = page_address(desc_page); 1043 qi->desc = page_address(desc_page);
1044 1044
1045 qi->desc_status = kmalloc(QI_LENGTH * sizeof(int), GFP_ATOMIC); 1045 qi->desc_status = kzalloc(QI_LENGTH * sizeof(int), GFP_ATOMIC);
1046 if (!qi->desc_status) { 1046 if (!qi->desc_status) {
1047 free_page((unsigned long) qi->desc); 1047 free_page((unsigned long) qi->desc);
1048 kfree(qi); 1048 kfree(qi);