linux/drivers/staging/iio/adc
Andreas Ruprecht 6d3ff1cc99 Staging: iio/adc: strict_strtoul was used with a long type variable
The function ad7280_store_balance_timer() parses data from a char*
buffer into a long variable, but uses the the function strict_strtoul
which expects a pointer to an unsigned long variable as its third
parameter.

As Dan Carpenter mentioned, the values are capped a few lines later,
but a check if val is negative is missing.
Now this function will return -ERANGE if there is a representation of
a negative number in buf.

Additionally the checkpatch.pl considers strict_strtoul as obsolete.
I replaced its call with the suggested kstrtoul.

Signed-off-by: Andreas Ruprecht <rupran@einserver.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-30 19:37:33 +09:00
..
Kconfig iio: adc: Relocate Capacitance to Digital Converters (CDC) into own subdir 2011-10-19 13:55:43 -07:00
Makefile iio: adc: Relocate Capacitance to Digital Converters (CDC) into own subdir 2011-10-19 13:55:43 -07:00
ad799x.h staging:iio:adc:ad799x avoid bouncing back and forth from iio_priv space. 2011-10-03 16:07:02 -07:00
ad799x_core.c staging:iio: Add missing MODULE_DEVICE_TABLE and MODULE_ALIAS 2011-11-26 16:48:04 -08:00
ad799x_ring.c staging:iio: header reorganization 2011-11-26 16:35:04 -08:00
ad7192.c staging:iio: Add missing MODULE_DEVICE_TABLE and MODULE_ALIAS 2011-11-26 16:48:04 -08:00
ad7192.h
ad7280a.c Staging: iio/adc: strict_strtoul was used with a long type variable 2011-11-30 19:37:33 +09:00
ad7280a.h
ad7291.c staging:iio:treewide only use shared to decide on interfaces 2011-11-26 16:35:04 -08:00
ad7298.h staging:iio: tree wide IIO_RING_BUFFER config symbol to IIO_BUFFER 2011-09-26 17:31:53 -07:00
ad7298_core.c Staging: iio: fix endian conversion in ad7298_scan_direct() 2011-11-26 16:55:38 -08:00
ad7298_ring.c staging:iio: header reorganization 2011-11-26 16:35:04 -08:00
ad7476.h staging:iio: tree wide IIO_RING_BUFFER config symbol to IIO_BUFFER 2011-09-26 17:31:53 -07:00
ad7476_core.c staging:iio: Add missing MODULE_DEVICE_TABLE and MODULE_ALIAS 2011-11-26 16:48:04 -08:00
ad7476_ring.c staging:iio: header reorganization 2011-11-26 16:35:04 -08:00
ad7606.h staging:iio:adc:ad7606 remove unused chip info elements. 2011-10-03 16:07:05 -07:00
ad7606_core.c staging:iio:treewide only use shared to decide on interfaces 2011-11-26 16:35:04 -08:00
ad7606_par.c staging:iio: Add missing MODULE_DEVICE_TABLE and MODULE_ALIAS 2011-11-26 16:48:04 -08:00
ad7606_ring.c staging:iio: header reorganization 2011-11-26 16:35:04 -08:00
ad7606_spi.c staging:iio: Add missing MODULE_DEVICE_TABLE and MODULE_ALIAS 2011-11-26 16:48:04 -08:00
ad7780.c staging:iio: Add missing MODULE_DEVICE_TABLE and MODULE_ALIAS 2011-11-26 16:48:04 -08:00
ad7780.h
ad7793.c staging:iio: Add missing MODULE_DEVICE_TABLE and MODULE_ALIAS 2011-11-26 16:48:04 -08:00
ad7793.h
ad7816.c staging:iio: header reorganization 2011-11-26 16:35:04 -08:00
ad7887.h staging:iio: tree wide IIO_RING_BUFFER config symbol to IIO_BUFFER 2011-09-26 17:31:53 -07:00
ad7887_core.c staging:iio: Add missing MODULE_DEVICE_TABLE and MODULE_ALIAS 2011-11-26 16:48:04 -08:00
ad7887_ring.c staging:iio: header reorganization 2011-11-26 16:35:04 -08:00
adt7310.c staging:iio: header reorganization 2011-11-26 16:35:04 -08:00
adt7410.c staging:iio: header reorganization 2011-11-26 16:35:04 -08:00
max1363.h
max1363_core.c staging:iio:treewide only use shared to decide on interfaces 2011-11-26 16:35:04 -08:00
max1363_ring.c staging:iio: header reorganization 2011-11-26 16:35:04 -08:00