wlan: Fix buffer overwrite problem in GETFASTROAM

If (len + 1) is greater than priv_data.total_len then copy_to_user
results in writing more data than the buffer can hold.
Fix this by writing mininum of (len + 1) and priv_data.total_len.

Change-Id: Ic52094eb93e01fd1dd653645127632677d31f7dc
CRs-Fixed: 865571
1 file changed
tree: 8dad27fcfb2e4c2e25268ece295666358af123d9
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile