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

Commit 5d2c59b8 authored by E V Ravi's avatar E V Ravi Committed by Gerrit - the friendly Code Review server
Browse files

msm: ais: Fix camera start failure



This reverts some part of changes in the file cam_packet_util.c for the
commit 21fbc0b4 ("msm: ais: Validate packet params against cpu buffer
length") to avoid camera start failure.

Change-Id: I6ada2d81ac92c8f936cc080746f968f2f4e43fa8
Signed-off-by: default avatarE V Ravi <evenka@codeaurora.org>
parent 4f1b5e51
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ int cam_packet_util_get_kmd_buffer(struct cam_packet *packet,

	remain_len = len;
	if (((size_t)cmd_desc->offset >= len) ||
		((size_t)cmd_desc->size >= (len - (size_t)cmd_desc->offset))) {
		((size_t)cmd_desc->size > (len - (size_t)cmd_desc->offset))) {
		CAM_ERR(CAM_UTIL, "invalid memory len:%zd and cmd desc size:%d",
			len, cmd_desc->size);
		rc = -EINVAL;