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

Commit c5685ec0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Return mementry only if pending_free is not set"

parents b8b32916 0e42ef24
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1238,6 +1238,7 @@ kgsl_sharedmem_find(struct kgsl_process_private *private, uint64_t gpuaddr)
	spin_lock(&private->mem_lock);
	idr_for_each_entry(&private->mem_idr, entry, id) {
		if (GPUADDR_IN_MEMDESC(gpuaddr, &entry->memdesc)) {
			if (!entry->pending_free)
				ret = kgsl_mem_entry_get(entry);
			break;
		}