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

Commit 1272cb1a authored by Sivan Reinstein's avatar Sivan Reinstein
Browse files

msm: ipa3: fix memory leak in ipa3_send()



In ipa3_send() there is a dynamic allocation of gsi_xfer_elem_array,
which was not freed in case of success.
The fix is to release gsi_xfer_elem_array after gsi_queue_xfer() returns
with success.

Change-Id: Ic4394a87c8b99f36810ac3e1cde422b29028a1fa
Signed-off-by: default avatarSivan Reinstein <sivanr@codeaurora.org>
parent 50e0173f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -604,6 +604,7 @@ int ipa3_send(struct ipa3_sys_context *sys,
			IPAERR("GSI xfer failed.\n");
			goto failure;
		}
		kfree(gsi_xfer_elem_array);
	} else {
		result = sps_transfer(sys->ep->ep_hdl, &transfer);
		if (result) {