This repository has been archived by the owner on Aug 29, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
msm: camera: Fix memory leak in cam_res_mgr_probe()
Since we have multiple CCIs with qcom,cam-res-mgr defined, the global cam_res pointer gets overwritten each time a CCI probes, causing memory to be leaked. Since it appears that the single global cam_res pointer is intentional, let's just skip superfluous cam_res allocations to fix the leak. Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com> Signed-off-by: LibXZR <xzr467706992@163.com> Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
- Loading branch information