summaryrefslogtreecommitdiff
path: root/kernel/time/timer.c
diff options
context:
space:
mode:
authorUmang Agrawal <uagrawal@codeaurora.org>2018-06-20 14:48:05 +0530
committerGeorg Veichtlbauer <georg@vware.at>2023-07-16 12:47:42 +0200
commit07f7c9961c7cd0090dd1771f61245746af7fe1ea (patch)
treea33df9d62772c1b6d57392ec51ec75071fb9419d /kernel/time/timer.c
parent094b738f46c80c56d03d923c3e780e071abe34b0 (diff)
power: smb-lib: Fix mutex acquisition deadlock on PD hard reset
Mutex acquisition deadlock can happen while cancelling cc_dettach work during pd_hard_reset from the function usbin_plugin_hard_reset _locked on vbus rise which is called in the same lock context that we try to acquire in the cc_dettach work routine. Check if cc_dettach work is running during pd_hard_reset and use trylock instead of mutex_lock to prevent any deadlock if mutext is already held. Change-Id: I5530deb9e654d3d12ba1b4bc6876f36127a0d5a5 Signed-off-by: Umang Agrawal <uagrawal@codeaurora.org>
Diffstat (limited to 'kernel/time/timer.c')
0 files changed, 0 insertions, 0 deletions