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:
Eric Holmberg <eholmber@codeaurora.org>
Loading
Please register or sign in to comment