mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
disp: msm: get and release lock on msm_obj before put iova
This change will acquire the proper lock before calling put_iova and release the lock on return. Change-Id: I04334597018a6041eab0107660b2d441f8e3cc92 Signed-off-by: Samantha Tran <samtran@codeaurora.org>
This commit is contained in:
parent
dc6f198f99
commit
27b60379d1
1 changed files with 4 additions and 1 deletions
|
|
@ -527,8 +527,11 @@ void msm_gem_aspace_domain_attach_detach_update(
|
|||
*/
|
||||
list_for_each_entry(msm_obj, &aspace->active_list, iova_list) {
|
||||
obj = &msm_obj->base;
|
||||
if (obj->import_attach)
|
||||
if (obj->import_attach) {
|
||||
mutex_lock(&msm_obj->lock);
|
||||
put_iova(obj);
|
||||
mutex_unlock(&msm_obj->lock);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
/* map active buffers */
|
||||
|
|
|
|||
Loading…
Reference in a new issue