Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3589a09 authored by Tejas Prajapati's avatar Tejas Prajapati
Browse files

msm: camera: reqmgr: check link state before taking mutex



In case if the destroy session is processed first it will
as a part of unlink try to drain the work queue. This will
schedule all the enqueued wq. Workqueue when scheduled
try to acquire same mutex destroy session has already acquried
this will lead to dead-lock. To avoid that, check the link
state first if it is in idle state then return from the
workqueue without trying to acquire mutex.

CRs-Fixed: 29763254
Change-Id: I57a53455c69e5f4f38c92413f9d1b7f2d06c9960
Signed-off-by: default avatarTejas Prajapati <tpraja@codeaurora.org>
parent 786e1d8b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment