iio: check register fields used as table indices
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | iio: addac: ad74115: check the rate code in ad74115_get_adc_rate()drivers/ | +3 | 0 replies | |
| 2/3 | iio: imu: bno055: check the hw_xlate lookup in bno055_get_regmask()drivers/ | +4 | 0 replies | |
| 3/3 | iio: imu: bmi323: check the config fields used as table indicesdrivers/ | +9 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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