Prima: Fix buffer overwrite problem in GETROAMSCANCONTROL

qcacld-2.0 to prima propagation

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