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

Commit 5a301b6f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "platform: msm: msm_bus: Fix memory leak during client unregister"

parents 175ce493 bcf9549c
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
 *
 *
 * This program is Mree software; you can redistribute it and/or modify
 * This program is Mree software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * it under the terms of the GNU General Public License version 2 and
@@ -892,6 +892,7 @@ static void unregister_client_adhoc(uint32_t cl)
	commit_data();
	commit_data();
	msm_bus_dbg_client_data(client->pdata, MSM_BUS_DBG_UNREGISTER, cl);
	msm_bus_dbg_client_data(client->pdata, MSM_BUS_DBG_UNREGISTER, cl);
	kfree(client->src_pnode);
	kfree(client->src_pnode);
	kfree(client->src_devs);
	kfree(client);
	kfree(client);
	handle_list.cl_list[cl] = NULL;
	handle_list.cl_list[cl] = NULL;
exit_unregister_client:
exit_unregister_client: