commit | 627df446f3ef13ccc007e3bb9de73584433a795c | [log] [tgz] |
---|---|---|
author | Ratnam Rachuri <c_rrachu@qti.qualcomm.com> | Fri Jul 17 13:23:42 2015 +0530 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Sun Jul 19 10:43:08 2015 -0700 |
tree | 3b7a883f682641663debbc1233e10b2df61d937c | |
parent | 3672d5f32e7c216b8339289905766da3ad005f83 [diff] |
wlan: Fix buffer overwrite problem in GETROAMMODE 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: 865595 Change-Id: I35e63ec28b6e704e5f8d9b0156de61c3183b5ee6