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

Commit c27d4ee6 authored by Soundrapandian Jeyaprakash's avatar Soundrapandian Jeyaprakash
Browse files

msm: camera: fix the bug for yuv sensor



convert variable count from number bytes to number of uint32_t

Change-Id: I4b9a9b16cc7a2a7d2dec573767a897806487df61
Signed-off-by: default avatarSoundrapandian Jeyaprakash <jsoundra@codeaurora.org>
parent e54464ab
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -298,6 +298,8 @@ static int32_t msm_sensor_get_dt_data(struct device_node *of_node,
		goto FREE_SLAVE_INFO;
	}

	count /= sizeof(uint32_t);

	if (count > MSM_SENSOR_NUM_ID_INFO_DATA) {
		pr_err("%s failed %d\n", __func__, __LINE__);
		goto FREE_SLAVE_INFO;