mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
Merge branches 'apple/dart', 'arm/smmu/updates', 'arm/smmu/bindings', 'rockchip', 's390', 'core', 'intel/vt-d' and 'amd/amd-vi' into next
This commit is contained in:
@@ -360,7 +360,8 @@ static int cdx_dma_configure(struct device *dev)
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (!ret && !cdx_drv->driver_managed_dma) {
|
||||
/* @cdx_drv may not be valid when we're called from the IOMMU layer */
|
||||
if (!ret && dev->driver && !cdx_drv->driver_managed_dma) {
|
||||
ret = iommu_device_use_default_domain(dev);
|
||||
if (ret)
|
||||
arch_teardown_dma_ops(dev);
|
||||
|
||||
Reference in New Issue
Block a user