wlan: Fix buffer overwrite problem in GETROAMSCANCHANNELS

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: I70c6c4db1c7a83e614a6d4bc40a7d7ebca138568
CRs-Fixed: 865581
1 file changed
tree: 2baf18e54ae3fe0a01cb60065e7da49e1598620b
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile