linux-stable/include/linux/iio
Martin Kelly c043ec1ca5 iio:buffer: make length types match kfifo types
Currently, we use int for buffer length and bytes_per_datum. However,
kfifo uses unsigned int for length and size_t for element size. We need
to make sure these matches or we will have bugs related to overflow (in
the range between INT_MAX and UINT_MAX for length, for example).

In addition, set_bytes_per_datum uses size_t while bytes_per_datum is an
int, which would cause bugs for large values of bytes_per_datum.

Change buffer length to use unsigned int and bytes_per_datum to use
size_t.

Signed-off-by: Martin Kelly <mkelly@xevo.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2018-03-30 11:14:32 +01:00
..
accel
adc IIO: ADC: add stm32 DFSDM support for PDM microphone 2018-01-10 10:30:13 +00:00
common iio: st_sensors: split open-drain parameters for irq1 and irq2 2017-10-10 20:38:39 +01:00
dac License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
frequency
gyro
imu
magnetometer License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
timer iio: stm32: fix adc/trigger link error 2017-12-02 11:21:31 +00:00
buffer-dma.h
buffer-dmaengine.h
buffer.h iio:buffer.h - split into buffer.h and buffer_impl.h 2017-01-10 19:54:55 +00:00
buffer_impl.h iio:buffer: make length types match kfifo types 2018-03-30 11:14:32 +01:00
configfs.h
consumer.h IIO: consumer: allow to set buffer sizes 2018-01-10 10:30:14 +00:00
driver.h
events.h
hw-consumer.h IIO: hw_consumer: add devm_iio_hw_consumer_alloc 2018-01-10 10:30:07 +00:00
iio.h Staging/IIO patches for 4.16-rc1 2018-02-01 09:51:57 -08:00
kfifo_buf.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
machine.h iio: Add macro to populate struct iio_map array 2017-12-02 13:28:21 +00:00
sw_device.h iio: make function argument and some structures const 2017-10-19 16:15:24 +02:00
sw_trigger.h iio: make function argument and some structures const 2017-10-19 16:15:24 +02:00
sysfs.h
trigger.h iio: add field identifier for @use_count kernel-doc 2018-01-08 16:03:43 +01:00
trigger_consumer.h
triggered_buffer.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
triggered_event.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
types.h IIO: inkern: API for manipulating channel attributes 2018-01-10 10:30:08 +00:00