diff options
| author | 2018-09-06 13:32:07 +0100 | |
|---|---|---|
| committer | 2018-09-10 17:12:42 +0200 | |
| commit | d5c69c96798f908679bccc453547a65870bcf709 (patch) | |
| tree | 40fb18cea4597d53c2982d4c371f80b256e84fe1 /tools/perf/scripts/python | |
| parent | Staging: rtl8712: Add space between else and opening brace (diff) | |
staging: rtl8723bs: check for i out of range before accessing szLine[i]
Currently szLine[i] is being accessed before the index i is being
ranged checked. Fix this by checking the range first. Also, evaluate
the length of the string szLine just once rather than multiple times and
move the loop variable i to an inner scope and make it an int.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
