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

Skip to content
Commit a578ac96 authored by Puranam V G Tejaswi's avatar Puranam V G Tejaswi
Browse files

msm: kgsl: Do not fail after drawobj is added to context queue



After a drawobj is added to context drawqueue, if kmem_cache_alloc
fails, we destroy the drawobj. This could lead to use-after-free if
the context gets detached and drawobj is already destroyed meanwhile.
Avoid this by doing allocation before the drawobj is added to the queue.

Change-Id: I6d1f989b7795669f85756284db790f00f5fc2b9f
Signed-off-by: default avatarPuranam V G Tejaswi <pvgtejas@codeaurora.org>
parent 4cf5de75
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