Эх сурвалжийг харах

Merge "msm: camera: sensor: add missing call for put buf" into camera-kernel.lnx.7.0

Camera Software Integration 1 жил өмнө
parent
commit
ded3482130

+ 2 - 0
drivers/cam_sensor_module/cam_flash/cam_flash_core.c

@@ -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)) {