Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46333e37 authored by David Woodhouse's avatar David Woodhouse
Browse files

iommu/vt-d: Remove to_pci_dev() in intel_map_page()



It might not be...

Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 7207d8f9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)