Loading drivers/gpu/msm/kgsl.c +4 −2 Original line number Diff line number Diff line Loading @@ -915,12 +915,14 @@ static struct kgsl_process_private *kgsl_process_private_new( /* Allocate a pagetable for the new process object */ if (kgsl_mmu_enabled()) { private->pagetable = kgsl_mmu_getpagetable(&device->mmu, tgid); if (private->pagetable == NULL) { if (IS_ERR(private->pagetable)) { int err = PTR_ERR(private->pagetable); idr_destroy(&private->mem_idr); idr_destroy(&private->syncsource_idr); kfree(private); private = ERR_PTR(-ENOMEM); private = ERR_PTR(err); } } Loading drivers/iommu/arm-smmu.c +2 −2 Original line number Diff line number Diff line Loading @@ -1685,7 +1685,7 @@ static int arm_smmu_attach_dynamic(struct iommu_domain *domain, int ret; struct arm_smmu_domain *smmu_domain = domain->priv; enum io_pgtable_fmt fmt; struct io_pgtable_ops *pgtbl_ops; struct io_pgtable_ops *pgtbl_ops = NULL; struct arm_smmu_cfg *cfg = &smmu_domain->cfg; if (!(smmu->options & ARM_SMMU_OPT_DYNAMIC)) { Loading Loading @@ -1752,7 +1752,7 @@ static int arm_smmu_attach_dynamic(struct iommu_domain *domain, ret = 0; out: if (ret) kfree(pgtbl_ops); free_io_pgtable_ops(pgtbl_ops); mutex_unlock(&smmu->attach_lock); return ret; Loading Loading
drivers/gpu/msm/kgsl.c +4 −2 Original line number Diff line number Diff line Loading @@ -915,12 +915,14 @@ static struct kgsl_process_private *kgsl_process_private_new( /* Allocate a pagetable for the new process object */ if (kgsl_mmu_enabled()) { private->pagetable = kgsl_mmu_getpagetable(&device->mmu, tgid); if (private->pagetable == NULL) { if (IS_ERR(private->pagetable)) { int err = PTR_ERR(private->pagetable); idr_destroy(&private->mem_idr); idr_destroy(&private->syncsource_idr); kfree(private); private = ERR_PTR(-ENOMEM); private = ERR_PTR(err); } } Loading
drivers/iommu/arm-smmu.c +2 −2 Original line number Diff line number Diff line Loading @@ -1685,7 +1685,7 @@ static int arm_smmu_attach_dynamic(struct iommu_domain *domain, int ret; struct arm_smmu_domain *smmu_domain = domain->priv; enum io_pgtable_fmt fmt; struct io_pgtable_ops *pgtbl_ops; struct io_pgtable_ops *pgtbl_ops = NULL; struct arm_smmu_cfg *cfg = &smmu_domain->cfg; if (!(smmu->options & ARM_SMMU_OPT_DYNAMIC)) { Loading Loading @@ -1752,7 +1752,7 @@ static int arm_smmu_attach_dynamic(struct iommu_domain *domain, ret = 0; out: if (ret) kfree(pgtbl_ops); free_io_pgtable_ops(pgtbl_ops); mutex_unlock(&smmu->attach_lock); return ret; Loading