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

Commit 68bd747c authored by Srinivasarao Pathipati's avatar Srinivasarao Pathipati
Browse files

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: default avatarSrinivasarao Pathipati <quic_c_spathi@quicinc.com>
parent 77caecb9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}