mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
When setting the gyro or accelerometer scale the inv_mpu6050 driver ignores
the integer part of the value. As a result e.g. all of 0.13309, 1.13309,
12345.13309, ... are accepted as a valid gyro scale and 0.13309 is the
scale that gets set in all those cases.
Make sure to check that the integer part of the scale value is 0 and reject
it otherwise.
Fixes:
|
||
|---|---|---|
| .. | ||
| inv_mpu_acpi.c | ||
| inv_mpu_aux.c | ||
| inv_mpu_aux.h | ||
| inv_mpu_core.c | ||
| inv_mpu_i2c.c | ||
| inv_mpu_iio.h | ||
| inv_mpu_magn.c | ||
| inv_mpu_magn.h | ||
| inv_mpu_ring.c | ||
| inv_mpu_spi.c | ||
| inv_mpu_trigger.c | ||
| Kconfig | ||
| Makefile | ||