commit | d53009cef6a8f7023bb40d1ce8d04ac751247e49 | [log] [tgz] |
---|---|---|
author | Ratnam Rachuri <c_rrachu@qti.qualcomm.com> | Fri Aug 07 13:59:00 2015 +0530 |
committer | Satyanarayana Dash <sadash@codeaurora.org> | Fri Aug 07 19:21:19 2015 +0530 |
tree | 45b72b055760ef07d307c2407fdd817a4a0815ff | |
parent | 6da525db9415869425ddcd3dc75b75ad1cb4c1cb [diff] |
prima: Fix buffer overwrite problem in GETTSMSTATS qcacld-2.0 to prima propagation 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 Change-Id: I2521ee9d90e0e61fe02f69c566cd4c0a0276c1df CRs-Fixed: 865533