ASoC: wcd9320: Fix out of bounds for mad input value

Add check in taiko_mad_input_put function to
return error on out of bounds access using
mad input value

CRs-fixed: 1096799
CAF-Change-Id: I75ce9e881cf05a50e874a555b2f8bd3286cdaed4
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
CVE-2016-5858
[haggertk]: Backport to 3.4/msm8974

Change-Id: Ie28d6c34fd978098f45012f9d2f4b686100ce24b
1 file changed