commit | a72ba110160e395bce00e06f74ebf0309f827a39 | [log] [tgz] |
---|---|---|
author | Ratnam Rachuri <c_rrachu@qti.qualcomm.com> | Fri Jul 17 13:27:03 2015 +0530 |
committer | Satyanarayana Dash <sadash@codeaurora.org> | Fri Jul 17 18:54:24 2015 +0530 |
tree | 1928edb691b980475329c30cf2deada6f7e0a58e | |
parent | 2c9d670d25607a211ed014cde6814f410a99f329 [diff] |
wlan: Fix buffer overwrite problem in GETROAMSCANPERIOD 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: 865608 Change-Id: I5b7a16b1d3b7620f9741d6504d422750688a9780