Because IIO_EV_DIR_* are not bitmasks but enums, IIO_EV_DIR_RISING | IIO_EV_DIR_FALLING is not equal with IIO_EV_DIR_EITHER. This could lead to potential misformatted sysfs attributes like: * in_accel_x_thresh_(null)_en * in_accel_x_thresh_(null)_period * in_accel_x_thresh_(null)_value or even memory corruption. Fixes: b4b491c083 (iio: accel: kxcjk-1013: Support threshold) Signed-off-by: Daniel Baluta <daniel.baluta@intel.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org> |
||
|---|---|---|
| .. | ||
| bma180.c | ||
| bmc150-accel.c | ||
| hid-sensor-accel-3d.c | ||
| Kconfig | ||
| kxcjk-1013.c | ||
| kxsd9.c | ||
| Makefile | ||
| mma8452.c | ||
| st_accel_buffer.c | ||
| st_accel_core.c | ||
| st_accel_i2c.c | ||
| st_accel_spi.c | ||
| st_accel.h | ||