diff options
author | Mark Brown <broonie@kernel.org> | 2023-07-24 01:34:06 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-07-24 01:34:06 +0300 |
commit | 9c214af0bd0f43df214470a35bc38dd5602b666f (patch) | |
tree | e95ac46b8fdca90a122b73eac96158985d85ef70 /drivers/iommu/iommu-sva.c | |
parent | e02a4ccbeced64aa10f4e99683c721ec43e993c1 (diff) | |
parent | 6eaae198076080886b9e7d57f4ae06fa782f90ef (diff) | |
download | linux-9c214af0bd0f43df214470a35bc38dd5602b666f.tar.xz |
regmap: Merge up fixes from mainline
There's several things here that will really help my CI.
Diffstat (limited to 'drivers/iommu/iommu-sva.c')
-rw-r--r-- | drivers/iommu/iommu-sva.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iommu/iommu-sva.c b/drivers/iommu/iommu-sva.c index 3ebd4b6586b3..05c0fb2acbc4 100644 --- a/drivers/iommu/iommu-sva.c +++ b/drivers/iommu/iommu-sva.c @@ -34,8 +34,9 @@ static int iommu_sva_alloc_pasid(struct mm_struct *mm, ioasid_t min, ioasid_t ma } ret = ida_alloc_range(&iommu_global_pasid_ida, min, max, GFP_KERNEL); - if (ret < min) + if (ret < 0) goto out; + mm->pasid = ret; ret = 0; out: |