ASoC:msm:qdsp5: Checks to avoid buffer overflow.

This is needed to avoid buffer over flow, when userspace data in
kernel may go beyond buffer boundary.

Change-Id: Ib23fdc5b30a10a2c24d89816b457641583544f52
CRs-Fixed: 550177
CRs-Fixed: 550181
CRs-Fixed: 550196
Signed-off-by: Mohammad Johny Shaik <mjshai@codeaurora.org>
Merge "ASoC:msm:qdsp5: Checks to avoid buffer overflow."