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

Commit 028446bc authored by Camera Software Integration's avatar Camera Software Integration Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: memmgr: fix lack of condition lead to memory leak" into camera-kernel.lnx.4.0

parents 19198d5b 33402844
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -626,10 +626,10 @@ static int cam_mem_util_map_hw_va(uint32_t flags,
	return rc;
multi_map_fail:
	if (flags & CAM_MEM_FLAG_PROTECTED_MODE)
		for (--i; i > 0; i--)
		for (--i; i >= 0; i--)
			cam_smmu_unmap_stage2_iova(mmu_hdls[i], fd);
	else
		for (--i; i > 0; i--)
		for (--i; i >= 0; i--)
			cam_smmu_unmap_user_iova(mmu_hdls[i],
				fd,
				CAM_SMMU_REGION_IO);