diff options
| author | Colin Ian King <[email protected]> | 2018-09-06 13:32:07 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-09-10 17:12:42 +0200 |
| commit | d5c69c96798f908679bccc453547a65870bcf709 (patch) | |
| tree | 40fb18cea4597d53c2982d4c371f80b256e84fe1 /tools/perf/scripts/python | |
| parent | ec3d17acd6a6778329fd6b7237d1bda3e0b94688 (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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions