[PATCH v4 20/27] iommu: Add ops->domain_alloc_sva()

Daniel Mentz danielmentz at google.com
Mon Feb 19 14:47:31 PST 2024


On Fri, Jan 26, 2024 at 10:15 AM Jason Gunthorpe <jgg at nvidia.com> wrote:
> --- a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c
> +++ b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c
> @@ -654,7 +654,7 @@ static int arm_smmu_sva_set_dev_pasid(struct iommu_domain *domain,
>
>  static void arm_smmu_sva_domain_free(struct iommu_domain *domain)
>  {
> -       kfree(domain);
> +       kfree(to_smmu_domain(domain));
>  }

I'm wondering if this particular change belongs into the other change
with title "iommu/arm-smmu-v3: Make SVA allocate a normal
arm_smmu_domain"



More information about the linux-arm-kernel mailing list