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

Commit 6a7fed17 authored by Houston Hoffman's avatar Houston Hoffman
Browse files

i2c-msm-v2: correct end of message detection



Correct boundary case for end of message detection for buffers of
255 bytes. The check for max buffer size uses greater than rather
than the required greater or equal.

Change-Id: Icf94a33b8884756b6dc9515f7f61ebf154116435
Signed-off-by: default avatarHouston Hoffman <hhoffman@codeaurora.org>
parent 39cc58bf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2672,7 +2672,7 @@ static bool i2c_msm_xfer_buf_is_last(struct i2c_msm_ctrl *ctrl)
	struct i2c_msg *cur_msg = ctrl->xfer.msgs + cur_buf->msg_idx;

	return i2c_msm_xfer_msg_is_last(ctrl) &&
		((cur_buf->byte_idx + ctrl->ver.max_buf_size) > cur_msg->len);
		((cur_buf->byte_idx + ctrl->ver.max_buf_size) >= cur_msg->len);
}

static void i2c_msm_xfer_create_cur_tag(struct i2c_msm_ctrl *ctrl,