wlan: Fix buffer overwrite problem in GETROAMSCANPERIOD

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: 865608
Change-Id: I5b7a16b1d3b7620f9741d6504d422750688a9780
1 file changed
tree: 1928edb691b980475329c30cf2deada6f7e0a58e
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile