commit | acbfa930ad73161ca69660014d9c8e86a12dff99 | [log] [tgz] |
---|---|---|
author | Ratheesh S P <c_rpappa@qti.qualcomm.com> | Thu Jul 16 15:27:18 2015 +0530 |
committer | Satyanarayana Dash <sadash@codeaurora.org> | Thu Jul 16 19:11:28 2015 +0530 |
tree | 116c7029f24b23badd01658c83b072731b2765a9 | |
parent | bd3303c02d148f8cb3eb7c8cf8c7716d796c298e [diff] |
prima: Fix buffer overwrite problem in GETSCANCHANNELTIME 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: I9b4e118a8e145efe2f54b87f46030e874de67750 CRs-Fixed: 865556