ASoC: msm: qdsp6v2: fix possible integer overflow

Check integer overflow before multiplying struct size. If that happens
should return immediately. In addition if param length is greater than
MAX size from spec, better return error.

Change-Id: Ib96cb419ade042d21a1213f6d8c2ff339f5d1c56
CRs-fixed: 605273
Signed-off-by: Fred Oh <fred@codeaurora.org>
Merge "ASoC: msm: qdsp6v2: fix possible integer overflow"
Merge "Merge "ASoC: msm: qdsp6v2: fix possible integer overflow""
soc: qcom: smd: Validate read and write addresses

The address from which data has to be read and the address to which the
SMD data has to be written is calculated based on the head and tail
indices for that SMD FIFO. If the indices are corrupted, then the
calculated pointer may be outside of the FIFO and may even be outside of
the range of SMEM.

Validate the read and write addresses to be with in the limits of
receive and send FIFO limits respectively.

CRs-Fixed: 550527
Change-Id: Ie5578f6aee73ea2b1435fea7c2a0a6dda14bff82
Signed-off-by: Zaheerulla Meer <zmeer@codeaurora.org>
Merge "Merge "Merge "ASoC: msm: qdsp6v2: fix possible integer overflow"""
Merge "Merge "ASoC: msm: qdsp6v2: fix possible integer overflow""
Merge "Merge "Merge "ASoC: msm: qdsp6v2: fix possible integer overflow"""
Merge "Merge "ASoC: msm: qdsp6v2: fix possible integer overflow""
Merge "Merge "Merge "ASoC: msm: qdsp6v2: fix possible integer overflow"""
Merge "soc: qcom: smd: Validate read and write addresses"
Merge "Merge "soc: qcom: smd: Validate read and write addresses""
Merge "Merge "Merge "soc: qcom: smd: Validate read and write addresses"""
mdss: Move te parameters to dtsi file for 8x10

There may be need to fine-tune the te parameters depending on
panel. Move te parameters to panel dtsi file so that this can
be configured from panel dtsi file.

CRs-Fixed: 616178
Change-Id: I465b96f1631a96cddfa15c9c3004e3dbdcea5982
Signed-off-by: Shivaraj Shetty <shivaraj@codeaurora.org>
arm: boot: dts: Add TE paramters to truly wvga command mode panel

Add TE parametrs to truly wvga panel. These parametrs are used for
configuring the TE for this panel.

CRs-Fixed: 616178
Change-Id: I660decda5360a41161939cb0d7b35db8ccb0768a
Signed-off-by: Shivaraj Shetty <shivaraj@codeaurora.org>
Merge "Merge "soc: qcom: smd: Validate read and write addresses""
Merge "Merge "Merge "soc: qcom: smd: Validate read and write addresses"""
Merge "Merge "soc: qcom: smd: Validate read and write addresses""
Merge "Merge "Merge "soc: qcom: smd: Validate read and write addresses"""
msm: vidc: rewrite v4l2 cluster construction

V4L2 framework has limitation of not supporting
same control in multiple clusters. Overcome this
limitation by grouping all controls into one
super cluster.

Change-Id: I974199e1388a1b33ae5e56edd4b0af712eb9babf
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
msm: vidc: fix a race condition in cluster construction

At start of video session, when the super cluster is
constructed, it refers to a global static variable.
If we have multiple instances running simultaneously,
there exists a race condition, causing the instance
to register wrong cluster. Later on when a control
gets set in encoder, if the control is not found in
the cluster, we hit a BUG_ON, crashing the device.

Change-Id: Ib4ee64d684d903bb4f22310a1b34619728405649
Signed-off-by: Arun Menon <avmenon@codeaurora.org>