soc: qcom: check userspace buffer size in write()

Add checks to make sure userspace buffer is valid before
it is used. Add upper limit for glink channels and number
of intents allowed.

Change-Id: I9b8f2e47aada7922ba22cbb010176bf36a9d6288
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
1 file changed