summaryrefslogtreecommitdiffstats
path: root/drivers/iio/imu
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2021-09-09 12:13:36 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-09-18 19:10:55 +0100
commit8167c9a375ccceed19048ad9d68cb2d02ed276e0 (patch)
treeebcab45b607b40cea301853e0013d1bd43968434 /drivers/iio/imu
parent4170d3dd1467e9d78cb9af374b19357dc324b328 (diff)
downloadlinux-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