summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-09-06 13:32:07 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-10 17:12:42 +0200
commitd5c69c96798f908679bccc453547a65870bcf709 (patch)
tree40fb18cea4597d53c2982d4c371f80b256e84fe1 /tools/perf/scripts/python
parentec3d17acd6a6778329fd6b7237d1bda3e0b94688 (diff)
downloadlinux-d5c69c96798f908679bccc453547a65870bcf709.tar.gz
linux-d5c69c96798f908679bccc453547a65870bcf709.zip
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