wlan: Fix buffer overwrite problem in GETROAMDELTA

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