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

Commit d2459af3 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: Fix for invalid kernel memory access"

parents 1acf35fb 9c441c3c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -511,7 +511,9 @@ static int msm_isp_send_hw_cmd(struct vfe_device *vfe_dev,
		}
		lo_tbl_ptr = cfg_data +
			reg_cfg_cmd->u.dmi_info.lo_tbl_offset/4;

		if (reg_cfg_cmd->cmd_type == VFE_WRITE_DMI_64BIT)
			reg_cfg_cmd->u.dmi_info.len =
				reg_cfg_cmd->u.dmi_info.len / 2;
		for (i = 0; i < reg_cfg_cmd->u.dmi_info.len/4; i++) {
			lo_val = *lo_tbl_ptr++;
			if (reg_cfg_cmd->cmd_type == VFE_WRITE_DMI_16BIT) {