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

Commit 443a48b9 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 905982ac caa16bde
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1177,6 +1177,11 @@ int32_t cam_sensor_flush_request(struct cam_req_mgr_flush_request *flush_req)
		return -EINVAL;
	}

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

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