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

Commit 29b8073e authored by Praveen Kurapati's avatar Praveen Kurapati Committed by Mohammed Javid
Browse files

msm: ipa3: Fix to correct mem allocated flag



We are setting memory allocated as false even before
freeing system memory. Due to which memory deallocation
is bypassed.Remove the improper resetting of mem allocated
flag.

Change-Id: Ib2204b2541fe131d23270becf4cfbb47463bdf98
Signed-off-by: default avatarPraveen Kurapati <pkurapat@codeaurora.org>
Signed-off-by: default avatarMohammed Javid <mjavid@codeaurora.org>
parent 7f5e9be6
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1552,7 +1552,6 @@ int ipa3_del_nat_table(struct ipa_ioc_nat_ipv6ct_table_del *del)
			ipa3_ctx->nat_mem.pdn_mem.base,
			ipa3_ctx->nat_mem.pdn_mem.phys_base);
		ipa3_ctx->nat_mem.pdn_mem.base = NULL;
		ipa3_ctx->nat_mem.dev.is_mem_allocated = false;
	}

	ipa3_nat_ipv6ct_free_mem(&ipa3_ctx->nat_mem.dev);