commit | 842a9e524b16d9bff49e4e75f3a4595482f15c0b | [log] [tgz] |
---|---|---|
author | Sushant Kaushik <skaushik@qti.qualcomm.com> | Wed Jul 15 16:41:27 2015 +0530 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Fri Jul 17 11:58:04 2015 -0700 |
tree | 2baf18e54ae3fe0a01cb60065e7da49e1598620b | |
parent | 13a844b908dedb1b1ab9cbc21ec6fc289665129f [diff] |
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