diff options
| author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-04-04 10:31:25 +0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-04-06 18:41:27 +0300 |
| commit | c8e2d4873902c58ee14d3eb5138f516ba963e7d9 (patch) | |
| tree | b8449e95946308be1980e5cdf62c233bc56b0fad /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 2f896dd97cedbf6a8a7a14f4c6090d2b088cb694 (diff) | |
| download | linux-c8e2d4873902c58ee14d3eb5138f516ba963e7d9.tar.xz | |
iio: light: apds9306: Fix off by one in apds9306_sampling_freq_get()
The > comparison needs to be >= to prevent an out of bounds access.
Fixes: 620d1e6c7a3f ("iio: light: Add support for APDS9306 Light Sensor")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Subhajit Ghosh <subhajit.ghosh@tweaklogic.com>
Link: https://lore.kernel.org/r/69c5cb83-0209-40ff-a276-a0ae5e81c528@moroto.mountain
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
