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

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

Merge "msm: camera: utils: Fix OOB read due to wrong kmd cmd buffer index" into dev/msm-4.14-camx

parents 42e03add 579d766c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ int cam_packet_util_get_kmd_buffer(struct cam_packet *packet,
	}

	if ((packet->kmd_cmd_buf_index < 0) ||
		(packet->kmd_cmd_buf_index > packet->num_cmd_buf)) {
		(packet->kmd_cmd_buf_index >= packet->num_cmd_buf)) {
		CAM_ERR(CAM_UTIL, "Invalid kmd buf index: %d",
			packet->kmd_cmd_buf_index);
		return -EINVAL;