提交 46333e37 编写于 作者: D David Woodhouse

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

It might not be...
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
上级 7207d8f9
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册