commit | edc4e8592f5b26ca20c6bef5d7eb0cfb9378c2ac | [log] [tgz] |
---|---|---|
author | Ratnam Rachuri <c_rrachu@qti.qualcomm.com> | Wed Jul 22 16:57:49 2015 +0530 |
committer | Ratnam Rachuri <rrachu@codeaurora.org> | Wed Jul 22 17:11:38 2015 +0530 |
tree | 847b5d28ef5766011756ae0eb8bb12659872c1ce | |
parent | 798a6751a28f53eba13c54caf079bbec0640e20f [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