Skip to content

iio: check register fields used as table indices

Maoyi Xie linux-iio 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3iio: addac: ad74115: check the rate code in ad74115_get_adc_rate()drivers/iio/addac/ad74115.c+3 -00 replies
2/3iio: imu: bno055: check the hw_xlate lookup in bno055_get_regmask()drivers/iio/imu/bno055/bno055.c+4 -10 replies
3/3iio: imu: bmi323: check the config fields used as table indicesdrivers/iio/imu/bmi323/bmi323_core.c+9 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] iio: check register fields used as table indices

These three patches add a check where a driver uses a register field read from the chip as an index into a lookup table. Each is the same kind of simple check as the recent rm3100 patch and returns -ERANGE for a value that the driver never writes.

A few other IIO drivers have the same pattern. I plan to send those after this series, unless another form is preferred.

Maoyi Xie (3):
iio: addac: ad74115: check the rate code in ad74115_get_adc_rate()
iio: imu: bno055: check the hw_xlate lookup in bno055_get_regmask()
iio: imu: bmi323: check the config fields used as table indices

 drivers/iio/addac/ad74115.c          | 3 +++
 drivers/iio/imu/bmi323/bmi323_core.c | 9 +++++++++
 drivers/iio/imu/bno055/bno055.c      | 5 ++++-
 3 files changed, 16 insertions(+), 1 deletion(-)

base-commit: 7e1392a42ea288d70a266f6553fe06f57f8647ea

Signature · 1 line
2.34.1