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

Skip to content
Commit c4caca38 authored by Lakshmi Narayana Kalavala's avatar Lakshmi Narayana Kalavala
Browse files

drm/msm/sde: avoid sde ctx unbalanced call in fence create failure



Fence create may fail while looking for unused fd or
during sync_file creation process. That leads to
dma_fence_put API called followed by fence->release() call.
The fence release API decrements the sde_ctx refcount
and it may lead to free the context unexpectedly.
This patch acquires the sde_ctx refcount before unused
fd and syn_file creation calls and balances the call
during failure case.

Change-Id: I56069a3b5472a4d80e0f451247b3ec6167bc91a6
Signed-off-by: default avatarLakshmi Narayana Kalavala <lkalaval@codeaurora.org>
parent 1f3d4d45
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