linux/drivers/iio/imu
Darshana Padmadas 4ce7ca89d6 iio: imu: Use iio_trigger_get for indio_dev->trig assignment
This patch uses iio_trigger_get to increment the reference
count of trigger device, to avoid incorrect assignment.
Can result in a null pointer dereference during removal if the
trigger has been changed before removal.

This patch refers to a similar situation encountered through the
following discussion:
http://www.spinics.net/lists/linux-iio/msg13669.html

Signed-off-by: Darshana Padmadas <darshanapadmadas@gmail.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-03-28 13:51:40 +00:00
..
inv_mpu6050 iio:inv-mpu6050: Fix inconsistency for the scale channel 2015-03-14 18:36:21 +00:00
adis16400_buffer.c
adis16400_core.c iio: imu: adis16400: Fix sign extension 2015-01-26 21:06:42 +00:00
adis16400.h
adis16480.c iio: imu: adis16480 switch sampling frequency attr to core support 2014-07-07 10:00:59 +01:00
adis_buffer.c
adis_trigger.c iio: imu: Use iio_trigger_get for indio_dev->trig assignment 2015-03-28 13:51:40 +00:00
adis.c
Kconfig iio: imu: kmx61: Add support for data ready triggers 2014-12-12 13:49:30 +00:00
kmx61.c iio: fix drivers that check buffer->scan_mask 2015-03-07 19:17:07 +00:00
Makefile iio: imu: Add support for Kionix KMX61 sensor 2014-12-12 13:43:54 +00:00