commit | 2c4d6db9396b562674372e9f3ea491d2965597d4 | [log] [tgz] |
---|---|---|
author | Ratnam Rachuri <c_rrachu@qti.qualcomm.com> | Fri Jul 17 13:25:16 2015 +0530 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Mon Jul 20 15:47:01 2015 -0700 |
tree | 401e06434e8b8f4b074081276e9196317106002b | |
parent | 627df446f3ef13ccc007e3bb9de73584433a795c [diff] |
wlan: Fix buffer overwrite problem in GETROAMSCANREFRESHPERIOD 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: 865602 Change-Id: Id5a33f21912eeee06c0b896178aebaae5fbd8ec1