wlan: Fix buffer overwrite problem in GETROAMMODE

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