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

Commit 960a45b8 authored by Arun Menon's avatar Arun Menon
Browse files

msm: vidc: Release device lock while returning error from pm handler



Without this change, we will see a deadlock in the Venus hfi.
If the venus power handler thread gets kicked in after the
core has gone in to bad state, then power collapse will be
skipped. But the hfi device->lock was not released before
the return. Subsequently if the video driver receives a
suspend command, it will first try to acquire the device->lock,
and will be stuck there forever. This causes the entity which
invoked suspend operation on the video driver to timeout
and crash the device.

Change-Id: Ia6a0082724dffc6166f6fed0a79eb6526e44684b
Signed-off-by: default avatarArun Menon <avmenon@codeaurora.org>
parent 32829884
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