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

Skip to content
Commit 2959ed5e authored by Puranam V G Tejaswi's avatar Puranam V G Tejaswi Committed by Pranav Patel
Browse files

msm: kgsl: Signal fence only if last fence refcount was not put



Currently there is a chance that release for the fence was already called
before we call dma_fence_get during kgsl_timeline_signal and
kgsl_ioctl_timeline_destroy. This can cause use-after-free issue as we can
access fence after release. Fix this by signalling fence only if the last
refcount on the fence was not yet put. This makes sure that release for the
fence will not be called until we are done signalling.

Change-Id: I6bdcefa1f128febb7a0f7aef133757268a3b9ae3
Signed-off-by: default avatarPuranam V G Tejaswi <pvgtejas@codeaurora.org>
Signed-off-by: default avatarPranav Patel <quic_pranavp@quicinc.com>
parent e904060a
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