commit | 83c4c27b3b2e91c87fd6f1899384590351c335fd | [log] [tgz] |
---|---|---|
author | Ratnam Rachuri <c_rrachu@qti.qualcomm.com> | Fri Aug 07 14:06:37 2015 +0530 |
committer | Sachin Ahuja <sahuja@codeaurora.org> | Sat Aug 08 15:17:22 2015 +0530 |
tree | 480744ef04ca103e65a900d09bae9a68eb92e4eb | |
parent | fbc320b11c422de00303aa8ccb79d90378eedb14 [diff] |
prima: Fix buffer overwrite problem in GETSCANHOMEAWAYTIME 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 CRs-Fixed: 865548 Change-Id: Ided39e1b788447093334789018a8571c7be51f11