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

Commit 68fffd43 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Fix memory leak in _insert_gpuaddr()"

parents ea37f3c4 6410dcb6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2011-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2011-2019, The Linux Foundation. All rights reserved.
 */
#include <linux/types.h>
#include <linux/delay.h>
@@ -2295,6 +2295,7 @@ static int _insert_gpuaddr(struct kgsl_pagetable *pagetable,
		else {
			/* Duplicate entry */
			WARN(1, "duplicate gpuaddr: 0x%llx\n", gpuaddr);
			kmem_cache_free(addr_entry_cache, new);
			return -EEXIST;
		}
	}