diff options
| author | Dan Carpenter <[email protected]> | 2020-04-07 09:29:35 +0000 |
|---|---|---|
| committer | Enric Balletbo i Serra <[email protected]> | 2020-04-13 06:09:27 +0000 |
| commit | 5b69c23799ecfc279897e77f43625cc876d92765 (patch) | |
| tree | fa4837bbb27dfb912aa1f0bfeb1849b5dc4a9564 /drivers/net/ethernet/intel/igc/igc_main.c | |
| parent | platform/chrome: cros_ec_spi: Wait for USECS, not NSECS (diff) | |
| download | kernel-5b69c23799ecfc279897e77f43625cc876d92765.tar.gz kernel-5b69c23799ecfc279897e77f43625cc876d92765.zip | |
platform/chrome: cros_ec_sensorhub: Off by one in cros_sensorhub_send_sample()
The sensorhub->push_data[] array has sensorhub->sensor_num elements.
It's allocated in cros_ec_sensorhub_ring_add(). So the > should be >=
to prevent a read one element beyond the end of the array.
Fixes: 145d59baff59 ("platform/chrome: cros_ec_sensorhub: Add FIFO support")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Signed-off-by: Enric Balletbo i Serra <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions
