asoc: codecs: wcd938x: limit buffer copy to max buffer size

Check for max buffer size before filling the buffer and
add error handling for cases where buffer copy fails.

Change-Id: I0eede1e5baf63c35c65a704c8bf53c85fe49892e
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
1 file changed
tree: 4adb04a0f20f774fd209c42764bbb79d6ee0cb94
  1. asoc/
  2. config/
  3. dsp/
  4. include/
  5. ipc/
  6. soc/
  7. Android.mk
  8. Makefile
  9. Makefile.am
  10. NOTICE