Merge "msm: msm_bus: fix the memory leak issue"
This commit is contained in:
commit
c5db1ff34d
1 changed files with 2 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2014-2017, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* 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
|
||||
|
@ -1349,6 +1349,7 @@ static void unregister_adhoc(struct msm_bus_client_handle *cl)
|
|||
cl->first_hop, cl->active_only);
|
||||
commit_data();
|
||||
msm_bus_dbg_remove_client(cl);
|
||||
kfree(cl->name);
|
||||
kfree(cl);
|
||||
exit_unregister_client:
|
||||
rt_mutex_unlock(&msm_bus_adhoc_lock);
|
||||
|
|
Loading…
Add table
Reference in a new issue