wlan: Fix buffer overwrite problem in GETBAND

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.

CRs-Fixed: 865589
Change-Id: I134d21c1c73d4b1287aef7f78a59d18539c9d3dc
1 file changed
tree: 847b5d28ef5766011756ae0eb8bb12659872c1ce
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile