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:
Pankaj Gupta <gpankaj@codeaurora.org>
Loading
Please register or sign in to comment