linux-stable/drivers/staging/iio
Thomas Meyer d83fb18494 staging: iio: Use kcalloc instead of kzalloc to allocate array
The advantage of kcalloc is, that will prevent integer overflows which could
result from the multiplication of number of elements and size and it is also
a bit nicer to read.

The semantic patch that makes this change is available
in https://lkml.org/lkml/2011/11/25/107

Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-11-30 19:37:33 +09:00
..
accel staging: iio: Use kcalloc instead of kzalloc to allocate array 2011-11-30 19:37:33 +09:00
adc staging: iio: Use kcalloc instead of kzalloc to allocate array 2011-11-30 19:37:33 +09:00
addac staging:iio: header reorganization 2011-11-26 16:35:04 -08:00
cdc staging:iio:treewide only use shared to decide on interfaces 2011-11-26 16:35:04 -08:00
dac staging:iio: Add missing MODULE_DEVICE_TABLE and MODULE_ALIAS 2011-11-26 16:48:04 -08:00
dds staging:iio: Add missing MODULE_DEVICE_TABLE and MODULE_ALIAS 2011-11-26 16:48:04 -08:00
Documentation staging:iio:documentation: document filter_low_pass_3db_frequency. 2011-11-28 04:22:23 +09:00
gyro staging:iio: Add missing MODULE_DEVICE_TABLE and MODULE_ALIAS 2011-11-26 16:48:04 -08:00
impedance-analyzer staging:iio:treewide only use shared to decide on interfaces 2011-11-26 16:35:04 -08:00
imu staging:iio:imu:adis16400 add control of data filtering. 2011-11-28 04:22:23 +09:00
light staging:iio:treewide only use shared to decide on interfaces 2011-11-26 16:35:04 -08:00
magnetometer staging:iio: Add missing MODULE_DEVICE_TABLE and MODULE_ALIAS 2011-11-26 16:48:04 -08:00
meter staging: iio: Use kcalloc instead of kzalloc to allocate array 2011-11-30 19:37:33 +09:00
resolver staging:iio: Add missing MODULE_DEVICE_TABLE and MODULE_ALIAS 2011-11-26 16:48:04 -08:00
trigger staging:iio:trigger:bfin-timer: Fix compile error 2011-10-23 10:15:02 +02:00
buffer.h staging:iio: header reorganization 2011-11-26 16:35:04 -08:00
events.h staging:iio: IIO_EVENT_CODE: Clamp channel numbers 2011-11-26 16:39:58 -08:00
iio.h staging:iio: filter description - low pass 3db frequency. 2011-11-28 04:22:23 +09:00
iio_core.h staging:iio: core. Allow for event chrdev obtaining ioctl if no buffer present. 2011-11-26 16:30:31 -08:00
iio_core_trigger.h staging:iio:triggers Remove unecessary existence checks and return val 2011-11-26 16:30:30 -08:00
iio_dummy_evgen.c iio: Don't OOPS if dummy evgen failed init 2011-11-26 16:52:44 -08:00
iio_dummy_evgen.h staging:iio:dummy Add event support + fake event generator 2011-10-17 15:36:30 -07:00
iio_simple_dummy.c staging: iio: Use kcalloc instead of kzalloc to allocate array 2011-11-30 19:37:33 +09:00
iio_simple_dummy.h staging:iio:dummy Add buffered reading support 2011-10-17 15:36:30 -07:00
iio_simple_dummy_buffer.c staging: Add export.h for THIS_MODULE/EXPORT_SYMBOL to drivers/staging users. 2011-10-31 19:32:08 -04:00
iio_simple_dummy_events.c staging:iio: header reorganization 2011-11-26 16:35:04 -08:00
industrialio-buffer.c staging: iio: Use kcalloc instead of kzalloc to allocate array 2011-11-30 19:37:33 +09:00
industrialio-core.c staging: iio: Use kcalloc instead of kzalloc to allocate array 2011-11-30 19:37:33 +09:00
industrialio-trigger.c staging:iio: trigger fixes for repeat request of same trigger and allocation failure 2011-11-26 16:30:30 -08:00
Kconfig staging: iio: drop "select IIO_SIMPLE_DUMMY_EVGEN" 2011-11-26 16:43:38 -08:00
kfifo_buf.c staging:iio:kfifo remove entirely pointless code. 2011-11-26 16:30:30 -08:00
kfifo_buf.h staging:iio: header reorganization 2011-11-26 16:35:04 -08:00
Makefile iio: adc: Relocate Capacitance to Digital Converters (CDC) into own subdir 2011-10-19 13:55:43 -07:00
ring_hw.h staging:iio: replacing term ring with buffer in the IIO core. 2011-09-26 17:31:53 -07:00
ring_sw.c staging:iio: replacing term ring with buffer in the IIO core. 2011-09-26 17:31:53 -07:00
ring_sw.h staging:iio: header reorganization 2011-11-26 16:35:04 -08:00
sysfs.h staging:iio: header reorganization 2011-11-26 16:35:04 -08:00
TODO
trigger.h treewide: use __printf not __attribute__((format(printf,...))) 2011-10-31 17:30:54 -07:00
trigger_consumer.h staging:iio: treewide rename iio_triggered_ring_* to iio_triggered_buffer_* 2011-09-26 17:31:52 -07:00
types.h staging:iio: header reorganization 2011-11-26 16:35:04 -08:00