mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
Merge "msm: camera: memmgr: fix lack of condition lead to memory leak" into camera-kernel.lnx.4.0
This commit is contained in:
commit
028446bc80
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue