mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
haven: Fix memory leak
If haven returns an error in response to a message sent over hh_rm_msgq, free connection->recv_buff prior to returning an error to the caller. Change-Id: Ia23dcbb6a5bdb3d7a037d537e7dcf61695991a66 Signed-off-by: Srinivasarao Pathipati <quic_c_spathi@quicinc.com>
This commit is contained in:
parent
77caecb902
commit
68bd747c28
1 changed files with 1 additions and 0 deletions
|
|
@ -637,6 +637,7 @@ void *hh_rm_call(hh_rm_msgid_t message_id,
|
|||
pr_err("%s: Reply for seq:%d failed with RM err: %d\n",
|
||||
__func__, connection->seq, connection->reply_err_code);
|
||||
ret = ERR_PTR(hh_remap_error(connection->reply_err_code));
|
||||
kfree(connection->recv_buff);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue