soc: qcom: qmi: Fix wait event in handle destroy
If there is a packet in flight during ssr, send failure and
handle destruction can happen simultaneously. Although, the
handle is freed only after the transactions lists are empty,
the list check and wakeup happen without any locks held. This
may lead to a free after use crash when wakeup is triggered
after handle is freed.
Invoke wakeup and list check with appropriate lock being held.
CRs-Fixed: 899087
Change-Id: I38306cfe12e0c7ffb1f54b091a23cecb487ae9a0
Signed-off-by:
Atish Kumar Patra <apatra@codeaurora.org>
Loading
Please register or sign in to comment