diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-09-09 12:13:36 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-09-18 19:10:55 +0100 |
commit | 8167c9a375ccceed19048ad9d68cb2d02ed276e0 (patch) | |
tree | ebcab45b607b40cea301853e0013d1bd43968434 /drivers/iio/imu | |
parent | 4170d3dd1467e9d78cb9af374b19357dc324b328 (diff) | |
download | linux-8167c9a375ccceed19048ad9d68cb2d02ed276e0.tar.gz linux-8167c9a375ccceed19048ad9d68cb2d02ed276e0.tar.bz2 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 'drivers/iio/imu')
0 files changed, 0 insertions, 0 deletions