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

Commit 85cf9737 authored by Ravi Kishore Tanuku's avatar Ravi Kishore Tanuku Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: Fix incorrect update in EEPROM packet parser



Fix the incorrect update to the cmd_buf pointer and
also the size of processed bytes to ensure that
PWR_DOWN command can be parsed correctly. This ensures
proper power down of EEPROM.

Change-Id: If1c1314c12c8f7e2417c5d82c05ba1228469f4ac
Signed-off-by: default avatarRavi Kishore Tanuku <rktanuku@codeaurora.org>
parent b63757be
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -554,8 +554,8 @@ static int32_t cam_eeprom_init_pkt_parser(struct cam_eeprom_ctrl_t *e_ctrl,
				rc = cam_sensor_update_power_settings(cmd_buf,
					cmd_length_in_bytes, power_info);
				processed_cmd_buf_in_bytes +=
					total_cmd_buf_in_bytes;
				cmd_buf += total_cmd_buf_in_bytes/4;
					cmd_length_in_bytes;
				cmd_buf += cmd_length_in_bytes/4;
				if (rc) {
					CAM_ERR(CAM_EEPROM, "Failed");
					return rc;