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

Commit b2c17e9f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: cci: add out of boundary check"

parents 83fb16d4 216786ec
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -331,7 +331,7 @@ static int32_t msm_cci_calc_cmd_len(struct cci_device *cci_dev,
		pack_max_len = size < (cci_dev->payload_size-len) ?
			size : (cci_dev->payload_size-len);
		for (i = 0; i < pack_max_len;) {
			if (cmd->delay)
			if (cmd->delay || ((cmd - i2c_cmd) >= cmd_size))
				break;
			if (cmd->reg_addr + 1 ==
				(cmd+1)->reg_addr) {