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

Commit 96b35933 authored by Jilai Wang's avatar Jilai Wang
Browse files

msm: npu: Fix memory leakage issue during loading network



This change is to fix a memory leakage issue during loading
network.

Change-Id: I523c5ee0eaf94f7699b521b40460d5b73be170e4
Signed-off-by: default avatarJilai Wang <jilaiw@codeaurora.org>
parent ab252fbc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1284,6 +1284,7 @@ int32_t npu_host_load_network_v2(struct npu_client *client,

	load_ioctl->network_hdl = network->network_hdl;
	network->is_active = true;
	kfree(load_packet);
	network_put(network);
	mutex_unlock(&host_ctx->lock);