diff options
author | 2021-09-09 12:13:36 +0300 | |
---|---|---|
committer | 2021-09-18 19:10:55 +0100 | |
commit | 8167c9a375ccceed19048ad9d68cb2d02ed276e0 (patch) | |
tree | ebcab45b607b40cea301853e0013d1bd43968434 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | iio: ssp_sensors: fix error code in ssp_print_mcu_debug() (diff) | |
download | wireguard-linux-8167c9a375ccceed19048ad9d68cb2d02ed276e0.tar.xz wireguard-linux-8167c9a375ccceed19048ad9d68cb2d02ed276e0.zip |
iio: ssp_sensors: add more range checking in ssp_parse_dataframe()
The "idx" is validated at the start of the loop but it gets incremented
during the iteration so it needs to be checked again.
Fixes: 50dd64d57eee ("iio: common: ssp_sensors: Add sensorhub driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20210909091336.GA26312@kili
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions