commit | 5213959ed4c1831d0a0109b4ea5e9d8b3c60c9e9 | [log] [tgz] |
---|---|---|
author | Ratnam Rachuri <c_rrachu@qti.qualcomm.com> | Fri Jul 17 13:17:29 2015 +0530 |
committer | Satyanarayana Dash <sadash@codeaurora.org> | Fri Jul 17 18:54:24 2015 +0530 |
tree | 274dfb0f395ca387d2ae45baef572d2a7bfa230e | |
parent | 35fae9c4412d99ce36954de082cffe50527231a8 [diff] |
wlan: Fix buffer overwrite problem in GETBAND 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: 865589 Change-Id: I134d21c1c73d4b1287aef7f78a59d18539c9d3dc