Commit b85b4f30 authored by Jason Gunthorpe's avatar Jason Gunthorpe Committed by Joerg Roedel
Browse files

iommu: Fix return code in iommu_group_alloc_default_domain()

parent 0f6a9043
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1787,7 +1787,7 @@ iommu_group_alloc_default_domain(struct iommu_group *group, int req_type)
	 */
	if (ops->default_domain) {
		if (req_type)
			return ERR_PTR(-EINVAL);
			return NULL;
		return ops->default_domain;
	}