mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
msm: adsprpc: fix memory leak in fastrpc_file_free
Free memory allocated to dev_pm_qos_req when session allocation fails. Change-Id: Ic6cd872b835de2956bf6c7752a06a39a6419993c Acked-by: Nishant Chaubey <chaubey@qti.qualcomm.com> Signed-off-by: Jeya R <jeyr@codeaurora.org>
This commit is contained in:
parent
e4d3a647b0
commit
d325bc29d5
1 changed files with 1 additions and 0 deletions
|
|
@ -5072,6 +5072,7 @@ static int fastrpc_file_free(struct fastrpc_file *fl)
|
|||
kfree(fl->gidlist.gids);
|
||||
|
||||
if (!fl->sctx) {
|
||||
kfree(fl->dev_pm_qos_req);
|
||||
kfree(fl);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue