Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 685240ed authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "disp: msm: get and release lock on msm_obj before put iova"

parents 220f4941 27b60379
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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 */