msm: sdio_cmux: Fix for dead-lock on call to receive_cb of channel
In a rare scenario, a thread calls the function
sdio_cmux_is_channel_reset from sdio_ctl_poll
and it gets suspended while acquiring the mutex
logical_ch[id].lc_lock because this mutex is held
by another thread that is suspended while trying
to acquire the mutex rx_lock which is already
acquired by the first thread. This code changes fixes
this issue.
CRs-fixed: 435691
Change-Id: I5ed90f44cd55527ec7fa89c61fd88a58cb23acbb
Signed-off-by: Zaheerulla Meer <zmeer@codeaurora.org>
1 file changed