Commit ab6f4b00 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Joerg Roedel
Browse files

iommu/dma: Use kvcalloc() instead of kvzalloc()

parent 2cbc61a1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -558,7 +558,7 @@ static struct page **__iommu_dma_alloc_pages(struct device *dev,
	if (!order_mask)
		return NULL;

	pages = kvzalloc(count * sizeof(*pages), GFP_KERNEL);
	pages = kvcalloc(count, sizeof(*pages), GFP_KERNEL);
	if (!pages)
		return NULL;