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

Commit 3d671618 authored by Jigarkumar Zala's avatar Jigarkumar Zala Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: sensor: Correct the datatype for request id



Request id is having uint64 type from request manager, but sensor
driver is handling it with int64. This may cause the out of bound
access while accessing the data. This change corrects the data
type to handle data correctly.

CRs-Fixed: 2759031
Change-Id: I607ea3c123a7b050403e18f7f1bac2a23e1e585f
Signed-off-by: default avatarJigarkumar Zala <jzala@codeaurora.org>
parent 8fe045c3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1236,7 +1236,7 @@ int cam_sensor_power_down(struct cam_sensor_ctrl_t *s_ctrl)
}

int cam_sensor_apply_settings(struct cam_sensor_ctrl_t *s_ctrl,
	int64_t req_id, enum cam_sensor_packet_opcodes opcode)
	uint64_t req_id, enum cam_sensor_packet_opcodes opcode)
{
	int rc = 0, offset, i;
	uint64_t top = 0, del_req_id = 0;
+1 −1
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ int cam_sensor_power(struct v4l2_subdev *sd, int on);
 *
 * This API applies the req_id settings to sensor
 */
int cam_sensor_apply_settings(struct cam_sensor_ctrl_t *s_ctrl, int64_t req_id,
int cam_sensor_apply_settings(struct cam_sensor_ctrl_t *s_ctrl, uint64_t req_id,
	enum cam_sensor_packet_opcodes opcode);

/**