OSDN Git Service

msm: Array bounds check for buffer index
authorVignesh Kulothungan <vigneshk@codeaurora.org>
Tue, 28 Nov 2017 19:01:11 +0000 (11:01 -0800)
committerGerrit - the friendly Code Review server <code-review@localhost>
Tue, 12 Dec 2017 01:48:18 +0000 (17:48 -0800)
commit8e6914531152f65148ac78495e3609bf9a5de582
tree0070a0ebbd4a9bb003f28677848b0b6b0fd7d5a9
parentaaf4841e27b932dec6fae2703fae284627f335fb
msm: Array bounds check for buffer index

Check the ASM buffer index boundary before using it
to access the buffer to avoid out of array bounds error.

CRs-Fixed: 2145996
Change-Id: I97ad482dec0803debd01f19a9aeb531090fc1644
Signed-off-by: vigneshk <vigneshk@codeaurora.org>
sound/soc/msm/qdsp6v2/msm-pcm-q6-v2.c