Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd2bf202 authored by Akhil P Oommen's avatar Akhil P Oommen Committed by Harshitha Sai Neelati
Browse files

msm: kgsl: Fix a memory leak during Global PT init



Make sure we free iommu_pt when SMMU aperture programing fails.

Change-Id: I73fef2c61c62ba5040549abab81fa6ab7d293f64
Signed-off-by: default avatarAkhil P Oommen <akhilpo@codeaurora.org>
parent 5c12e867
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2011-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2011-2020, The Linux Foundation. All rights reserved.
 */

#include <linux/compat.h>
@@ -1222,7 +1222,7 @@ static int _init_global_pt(struct kgsl_mmu *mmu, struct kgsl_pagetable *pt)
			dev_err(device->dev,
				"SMMU aperture programming call failed with error %d\n",
				ret);
			return ret;
			goto done;
		}
	}