commit | 728d7c6e168614005a857bbbb18d94690e4244f7 | [log] [tgz] |
---|---|---|
author | Ratheesh S P <c_rpappa@qti.qualcomm.com> | Thu Jul 16 15:38:58 2015 +0530 |
committer | Satyanarayana Dash <sadash@codeaurora.org> | Thu Jul 16 19:11:28 2015 +0530 |
tree | c5a4364fc61744b8bb1a0251cbcc1730045e15f5 | |
parent | 767224e87bf2f39f9baa4e7eed49312c471c3915 [diff] |
prima: Fix buffer overwrite problem in GETSCANHOMETIME 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: Ib8a0311d0e375310985f30fa6946685e1709ed0a CRs-Fixed: 865555