Skip to content
Commit 79fe9044 authored by Maheshwar Ajja's avatar Maheshwar Ajja
Browse files

msm: vidc: Fix mutex lock deadlock issue



The debugfs method to trigger ssr has already acquired
debugfs srcu lock and is trying to acquire device->lock
in trigger_ssr() function. device->lock was already
acquired by another thread in core_release(). The function
core_release() calling ion_client_destroy() api which is
is trying to acquire the same debugfs srcu lock in function
debugfs_remove_recursive() resulting in deadlock between
trigger_ssr() and core_release() functions. Resolve the 
issue by acquiring core->lock before trigger_ssr() function
to ensure trigger_ssr() and core_release() functions does not
execute at the same time.

CRs-Fixed: 2128555
Change-Id: I35c5c115f0e6281f47a7f108ec75c5870efa743e
Signed-off-by: default avatarMaheshwar Ajja <majja@codeaurora.org>
parent 099e9fc7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment