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

Commit caf2454f authored by Jeyaprakash Soundrapandian's avatar Jeyaprakash Soundrapandian Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: Check for valid per frame i2c data." into dev/msm-4.9-camx

parents b69407e9 66834220
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -878,6 +878,11 @@ int32_t cam_actuator_flush_request(struct cam_req_mgr_flush_request *flush_req)
		return -EINVAL;
	}

	if (a_ctrl->i2c_data.per_frame == NULL) {
		CAM_ERR(CAM_ACTUATOR, "i2c frame data is NULL");
		return -EINVAL;
	}

	for (i = 0; i < MAX_PER_FRAME_ARRAY; i++) {
		i2c_set = &(a_ctrl->i2c_data.per_frame[i]);