diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 37ce54b188f3d04d151c82298f04a327a66fd12a..0a8e166a57b0286824f97fd1eae960ae901f02d4 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c @@ -3023,7 +3023,7 @@ static dma_addr_t intel_map_page(struct device *dev, struct page *page, struct dma_attrs *attrs) { return __intel_map_single(dev, page_to_phys(page) + offset, size, - dir, to_pci_dev(dev)->dma_mask); + dir, *dev->dma_mask); } static void flush_unmaps(void)