mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
Merge "msm: kgsl: Fix possible use-after-free while adding context to active list"
This commit is contained in:
commit
1807fa0375
1 changed files with 3 additions and 1 deletions
|
|
@ -444,11 +444,13 @@ void adreno_drawctxt_detach(struct kgsl_context *context)
|
|||
drawctxt = ADRENO_CONTEXT(context);
|
||||
rb = drawctxt->rb;
|
||||
|
||||
spin_lock(&drawctxt->lock);
|
||||
|
||||
spin_lock(&adreno_dev->active_list_lock);
|
||||
list_del_init(&drawctxt->active_node);
|
||||
spin_unlock(&adreno_dev->active_list_lock);
|
||||
|
||||
spin_lock(&drawctxt->lock);
|
||||
|
||||
count = drawctxt_detach_drawobjs(drawctxt, list);
|
||||
spin_unlock(&drawctxt->lock);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue