msm: camera: sensor: add missing call for put buf

adding missing call for put buf in flash to avoid leak.

CRs-Fixed: 3666659
Change-Id: I2e08331654e63b77950bb83ee6d95c4f5a716a86
Signed-off-by: jinguiw <quic_jinguiw@quicinc.com>
(cherry picked from commit 92e992dfae3cd269fbba0b51f0b456bebbb5f797)
This commit is contained in:
jinguiw
2023-11-15 16:23:52 +05:30
committed by Sridhar Gujje
parent 8ca826a179
commit 7390bf08c9

View File

@@ -1536,6 +1536,8 @@ int cam_flash_pmic_pkt_parser(struct cam_flash_ctrl *fctrl, void *arg)
CAM_WARN(CAM_FLASH,
"Rxed Flash fire ops without linking");
flash_data->cmn_attr.is_settings_valid = false;
cam_mem_put_cpu_buf(cmd_desc->mem_handle);
cam_mem_put_cpu_buf(config.packet_handle);
return -EINVAL;
}
if (remain_len < sizeof(struct cam_flash_set_on_off)) {