wlan: Fix buffer overwrite problem in GETROAMSCANREFRESHPERIOD

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: 865602
Change-Id: Id5a33f21912eeee06c0b896178aebaae5fbd8ec1
1 file changed
tree: 401e06434e8b8f4b074081276e9196317106002b
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile