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

Commit 296bf927 authored by Yuanyuan Liu's avatar Yuanyuan Liu
Browse files

cnss_prealloc: pre-alloc memory leak check on probe failure and remove



After wlan host driver probe failure and driver unload check the
memory leak and reset the memory pool.

CRs-Fixed: 2027407
Change-Id: Id6e413416ec7ea1d1bf0e69aab7eccb06de753d7
Signed-off-by: default avatarHardik Kantilal Patel <hkpatel@codeaurora.org>
Signed-off-by: default avatarYuanyuan Liu <yuanliu@codeaurora.org>
parent 1111c4cd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
/* Copyright (c) 2012,2014-2016 The Linux Foundation. All rights reserved.
/* Copyright (c) 2012,2014-2017 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
@@ -207,6 +207,8 @@ void wcnss_prealloc_check_memory_leak(void)
		print_stack_trace(&wcnss_allocs[i].trace, 1);
	}
}
#else
void wcnss_prealloc_check_memory_leak(void) {}
#endif

int wcnss_pre_alloc_reset(void)