commit | 944ce535fa570264751b319ed92bc0264144b3b5 | [log] [tgz] |
---|---|---|
author | Bulbul Dabi <bdabi@codeaurora.org> | Tue May 31 11:24:22 2016 -0600 |
committer | Pat Tjin <pattjin@google.com> | Wed Jan 18 22:48:56 2017 +0000 |
tree | 7ee6bcfb63c5c28490df564d3964bf2a052566cc | |
parent | d8b201bb85524cebaa54ed15bf129f3917ac3add [diff] |
msm: kgsl: Reserve a context ID slot but don't populate immediately When creating a context allocate an ID but don't populate the slot with the context pointer until we are done setup up the rest of the process. This avoids a race if somebody tries to free the same identifier before the create operation is complete. Bug: 31824853 Change-Id: Ic0dedbadca5b4cc4ce567afad48a33078b549439 Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>