Re: [PATCH] iio: gyro: bmg160: bail out when bandwidth/filter is not in table

From: Stepan Ionichev

Date: Wed May 13 2026 - 04:16:46 EST


Fixes: 22b46c45fb9b ("iio:gyro:bmg160 Gyro Sensor driver")

The set_filter() path is reachable from userspace via the
sysfs in_anglvel_filter_low_pass_3db_frequency interface, so
userspace can trivially trigger the out-of-bounds read with a
value that is not in bmg160_samp_freq_table[].filter.

Stepan