commit | 0d07d68412fb7ff2d9585cca3131e51dddb9d927 | [log] [tgz] |
---|---|---|
author | Ratnam Rachuri <c_rrachu@qti.qualcomm.com> | Fri Jul 17 13:27:03 2015 +0530 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Mon Jul 20 15:42:35 2015 -0700 |
tree | dbaa795959a3beb22f527bda672943f8f365f61a | |
parent | 5b06cca5ac57d47bffba2cfd3b69859721368573 [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