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

Commit 4ecd1b2d authored by Prashanth Reddy Baddam's avatar Prashanth Reddy Baddam
Browse files

msm: ipa: fix to NULL terminate the pointer



Fix to NULL terminate the peers list ptr
after freeing it, to get rid of use after
free issue.

Change-Id: Ide9fde9e7648a7af561a5b0ae0fa085810e59ea6
Signed-off-by: default avatarPrashanth Reddy Baddam <quic_pbaddam@quicinc.com>
parent 0aeda345
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -68,6 +68,7 @@ int ipa_rm_peers_list_create(int max_peers,

list_alloc_fail:
	kfree(*peers_list);
	*peers_list = NULL;
bail:
	return result;
}