commit | 083ada88ff0c274844a4a3bbeab0f227809e51d1 | [log] [tgz] |
---|---|---|
author | Ratnam Rachuri <c_rrachu@qti.qualcomm.com> | Fri Aug 07 14:01:05 2015 +0530 |
committer | Satyanarayana Dash <sadash@codeaurora.org> | Fri Aug 07 19:21:19 2015 +0530 |
tree | ce798a65f8af453a07c4d9b460dea2b9b587b570 | |
parent | d53009cef6a8f7023bb40d1ce8d04ac751247e49 [diff] |
Prima: Fix buffer overwrite problem in GETROAMSCANCONTROL 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: Ib73f73cdead8e5e68e4f9941ff7969ad0d4ec9c5 CRs-Fixed: 865514