diff options
author | 2013-08-26 18:10:01 +0300 | |
---|---|---|
committer | 2013-08-27 16:24:33 -0700 | |
commit | 4f03ffcd3e8a8860c9adc153f03bf2ed7d428f2b (patch) | |
tree | d4d5080175aed0b0d7c8dd30c5c74593f0e65d8a /tools/perf/scripts/python | |
parent | TTY: amiserial, remove unnecessary platform_set_drvdata() (diff) | |
download | linux-dev-4f03ffcd3e8a8860c9adc153f03bf2ed7d428f2b.tar.xz linux-dev-4f03ffcd3e8a8860c9adc153f03bf2ed7d428f2b.zip |
serial: icom: move array overflow checks earlier
This code does an annoying thing where it writes to the array and then
checks later for array overflows. I don't know if it's actually
possible to overflow but let's check before using the array index.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions