soc: Fix out of bounds access in register show function

In register show function, when snprintf returns a negative value
out of bounds access occurs while copying the data to user.
Add return value check on snprintf before copy_to_user
to fix this.

Change-Id: I96bfa64b1603c966852c1d4d4a12651664f17aed
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
1 file changed
tree: 83341888679540c4dfda144fd14a17cd2499501a
  1. asoc/
  2. config/
  3. dsp/
  4. include/
  5. ipc/
  6. soc/
  7. Android.mk
  8. Makefile
  9. Makefile.am
  10. NOTICE