android_kernel_motorola_sm6375/drivers/iio
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Gustavo A. R. Silva dd92d5ea20 iio: multiplexer: add NULL check on devm_kzalloc() and devm_kmemdup() return values
Check return values from call to devm_kzalloc() and devm_kmemup()
in order to prevent a NULL pointer dereference.

This issue was detected using Coccinelle and the following semantic patch:

@@
expression x;
identifier fld;
@@

* x = devm_kzalloc(...);
   ... when != x == NULL
   x->fld

Fixes: 7ba9df54b0 ("iio: multiplexer: new iio category and iio-mux driver")
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Acked-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2017-09-03 18:10:29 +01:00
..
accel
adc iio:adc:ti-ads8688: Drop manual setting of the driver owner field. 2017-09-03 18:10:25 +01:00
amplifiers iio:amplifiers:ad8366 drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:24:50 +01:00
buffer
chemical iio:chemical: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:25:20 +01:00
common iio:common: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:25:33 +01:00
counter iio:counter:104-quad-8 drop assign iio_info.driver_module 2017-08-22 21:26:11 +01:00
dac iio:dac: drop assignment of iio_info.driver_module 2017-08-22 21:26:54 +01:00
dummy iio:dummy: drop assignment of iio_info.driver_module 2017-08-22 21:27:45 +01:00
frequency iio:frequency: drop assign iio_info.driver_module 2017-08-22 21:28:20 +01:00
gyro iio:gyro: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:28:56 +01:00
health iio:health: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:29:44 +01:00
humidity iio:humidity: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:30:20 +01:00
imu iio:imu: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:31:01 +01:00
light iio: light: tcs3472: support out-of-threshold events 2017-09-03 18:10:29 +01:00
magnetometer iio:magnetometer: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:32:52 +01:00
multiplexer iio: multiplexer: add NULL check on devm_kzalloc() and devm_kmemdup() return values 2017-09-03 18:10:29 +01:00
orientation iio:orientation: drop assign iio_info.driver_module 2017-08-22 21:33:36 +01:00
potentiometer iio:potentiometer:max5487: Drop explicit setting of module owner 2017-09-03 18:10:27 +01:00
potentiostat iio:potentiostat:lmp91000 drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:34:48 +01:00
pressure iio:pressure: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 21:35:27 +01:00
proximity iio:proximity: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 22:14:51 +01:00
temperature iio:temperature: drop assignment of iio_info.driver_module 2017-08-22 22:14:52 +01:00
trigger iio:triggers: drop assign iio_info.driver_module and iio_trigger_ops.owner 2017-08-22 22:14:52 +01:00
iio_core.h
iio_core_trigger.h
industrialio-buffer.c
industrialio-configfs.c
industrialio-core.c
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c
Kconfig
Makefile