Loading drivers/iommu/iommu.c +12 −11 Original line number Diff line number Diff line Loading @@ -788,7 +788,9 @@ static struct iommu_group *iommu_group_get_for_pci_dev(struct pci_dev *pdev) /* No shared group found, allocate new */ group = iommu_group_alloc(); if (group) { if (IS_ERR(group)) return NULL; /* * Try to allocate a default domain - needs support from the * IOMMU driver. Loading @@ -796,7 +798,6 @@ static struct iommu_group *iommu_group_get_for_pci_dev(struct pci_dev *pdev) group->default_domain = __iommu_domain_alloc(pdev->dev.bus, IOMMU_DOMAIN_DMA); group->domain = group->default_domain; } return group; } Loading Loading @@ -1548,8 +1549,8 @@ int iommu_request_dm_for_dev(struct device *dev) /* Device must already be in a group before calling this function */ group = iommu_group_get_for_dev(dev); if (!group) return -EINVAL; if (IS_ERR(group)) return PTR_ERR(group); mutex_lock(&group->mutex); Loading Loading
drivers/iommu/iommu.c +12 −11 Original line number Diff line number Diff line Loading @@ -788,7 +788,9 @@ static struct iommu_group *iommu_group_get_for_pci_dev(struct pci_dev *pdev) /* No shared group found, allocate new */ group = iommu_group_alloc(); if (group) { if (IS_ERR(group)) return NULL; /* * Try to allocate a default domain - needs support from the * IOMMU driver. Loading @@ -796,7 +798,6 @@ static struct iommu_group *iommu_group_get_for_pci_dev(struct pci_dev *pdev) group->default_domain = __iommu_domain_alloc(pdev->dev.bus, IOMMU_DOMAIN_DMA); group->domain = group->default_domain; } return group; } Loading Loading @@ -1548,8 +1549,8 @@ int iommu_request_dm_for_dev(struct device *dev) /* Device must already be in a group before calling this function */ group = iommu_group_get_for_dev(dev); if (!group) return -EINVAL; if (IS_ERR(group)) return PTR_ERR(group); mutex_lock(&group->mutex); Loading