linux/drivers/iio/gyro
Dan Carpenter 12660138b4 iio:gyro: adis16136: divide by zero in write_frequency()
It's slightly cleaner to use kstrtouint() because we pass unsigned ints
to adis16136_set_freq().  On 64 bit systems, if the user passed LONG_MIN
then it we would get past the test against zero but crash in
adis16136_set_freq() because we truncate the high bits away.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-By: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2012-11-30 13:09:22 +00:00
..
adis16136.c iio:gyro: adis16136: divide by zero in write_frequency() 2012-11-30 13:09:22 +00:00
hid-sensor-gyro-3d.c iio: hid-sensor: Return proper error if kmemdup fails 2012-11-17 10:17:28 +00:00
Kconfig iio:gyro: Add support for the ADIS16136 gyroscope 2012-11-20 21:26:34 +00:00
Makefile iio:gyro: Add support for the ADIS16136 gyroscope 2012-11-20 21:26:34 +00:00