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

Commit ff332e83 authored by Pankaj Gupta's avatar Pankaj Gupta
Browse files

msm: kgsl: Fix list corruption in worker initialization of mem_entry



While deferring mem_entry_put, we are doing INIT_WORK for entry.
When mem_entry_put get called again for the same entry before
execution of previous work finishes, there is a chance of corruption
in the list and cause a crash. Update kgsl_mem_entry_put_deferred
to put refcount on mem entry and trigger deferred mem entry destroy
only when refcount on entry is the last refcount.

Change-Id: I2a8533fd26e776d49ab128bdb484053ce3bc82dc
Signed-off-by: default avatarPankaj Gupta <gpankaj@codeaurora.org>
parent 8e924318
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