commit | 4da7ec9b08ccf17646fdc690f3f1fdc9957d68da | [log] [tgz] |
---|---|---|
author | Sushant Kaushik <skaushik@qti.qualcomm.com> | Wed Jul 15 16:39:32 2015 +0530 |
committer | Satyanarayana Dash <sadash@codeaurora.org> | Wed Jul 15 19:52:49 2015 +0530 |
tree | 8dad27fcfb2e4c2e25268ece295666358af123d9 | |
parent | f8abd3563ee045dd27c09eeee96bbc22de448f26 [diff] |
wlan: Fix buffer overwrite problem in GETFASTROAM 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: Ic52094eb93e01fd1dd653645127632677d31f7dc CRs-Fixed: 865571