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

Skip to content
Commit 6379b8d8 authored by Aalique Grahame's avatar Aalique Grahame Committed by Gerrit - the friendly Code Review server
Browse files

hal: go from head of usecase list after removing offload usecase during ssr

When SSR is happening and the sound card is offline, after removing
an offload usecase from the usecase list, start traversing from the
beginning of the list on the next iteration. This must be done
because in the process of removing the current node from the list,
there is a moment in the time where another thread can remove the
node immediately after it which is also pointed to by tempnode
that is used by list_for_each_safe. This would result in tempnode
pointing to invalid memory on the next iteration of list_for_each_safe,
causing a segfault.

CRs-Fixed: 1088561
Change-Id: I8a220afa341c4e62612a809064754ddcd497d88a
parent bdee97c7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment