wlan:Fix buffer overwrite problem in GETROAMSCANCHANNELMINTIME

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