msm: eva: Fix Kw p1 issue

Validate s->next is not NULL before dereferencing

Change-Id: I8112eb20aab939b917243e283583ab9d0884e3e8
Signed-off-by: Jingyu Su <quic_jingyus@quicinc.com>
Cette révision appartient à :
Jingyu Su
2023-05-02 00:44:44 -07:00
Parent 1f5a03e9a6
révision 267b6bd153

Voir le fichier

@@ -602,7 +602,7 @@ static void cvp_remove_dsp_sessions(void)
while ((frpc_node = pop_frpc_node())) {
s = &frpc_node->dsp_sessions.list;
if (!s)
if (!s || !(s->next))
return;
list_for_each_safe(s, next_s,
&frpc_node->dsp_sessions.list) {