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

Skip to content
Commit 4a2164ae authored by Eric Holmberg's avatar Eric Holmberg Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: smd: add state check for re-open



A race condition exists if an SMD channel is closed in response to a
remote close followed by a client close and then an immediate re-open.
In this case, if the remote system is busy, it may miss the closing
transition and just see an OPENED->OPENING transition which is invalid.

Add a check when opening a channel to make sure that the remote side has
seen our CLOSED state before we allow a transition to OPENING.

CRs-Fixed: 764856
Change-Id: I3448a6fa96032437346bbbf86b99ca99db5965e1
Signed-off-by: default avatarEric Holmberg <eholmber@codeaurora.org>
parent 805be5f2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment