diff options
author | Rajesh Kemisetti <rajeshk@codeaurora.org> | 2016-03-08 14:12:37 +0530 |
---|---|---|
committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-25 16:03:36 -0700 |
commit | 6eea801d0bf14513eabd9f6c7fbb2bea046774a5 (patch) | |
tree | 54f7912858bd5dc5c02027ced6a88481657a2228 /drivers/hv/Kconfig | |
parent | 2e21911abee5189cb1ccb2bb8bd9d093e6cc3c3d (diff) |
msm: kgsl: Fix race condition during mem_entry detach
kgsl_mem_entry_detach_process() makes gpuaddr to NULL and then
removes the entry from mem_idr list.
Sometimes this can cause kgsl_sharedmem_find() to return the
same entry for a different gpuaddr/thread if it satisfies
GPUADDR_IN_MEMDESC().
To avoid this, first remove the entry from mem_idr list and
proceed with unmap/untrack calls.
Change-Id: Ib9f2bc0fdaecd394735dd61b18fdc7de57aa3748
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
Diffstat (limited to 'drivers/hv/Kconfig')
0 files changed, 0 insertions, 0 deletions