linux/drivers/iio/imu
Darshana Padmadas cfb769a843 iio: imu: Use iio_trigger_get for indio_dev->trig assignment
[ Upstream commit 4ce7ca89d6 ]

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>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
History 2015-04-24 17:13:53 -04:00
..
inv_mpu6050 iio: inv_mpu6050: Clear timestamps fifo while resetting hardware fifo 2015-04-24 17:13:50 -04:00
adis.c iio:imu: Add support for the ADIS16480 and similar IMUs 2012-11-20 21:28:51 +00:00
adis16400.h iio: adis16400: Set timestamp as the last element in chan_spec 2014-02-08 11:26:06 +00:00
adis16400_buffer.c iio: adis16400: Remove unused variable 2014-07-03 21:47:01 +01:00
adis16400_core.c iio: imu: adis16400: Fix sign extension 2015-03-14 15:37:20 -04:00
adis16480.c iio: imu: adis16480 switch sampling frequency attr to core support 2014-07-07 10:00:59 +01:00
adis_buffer.c iio:adis_lib: Use iio_push_to_buffers_with_timestamp() 2013-09-21 19:23:57 +01:00
adis_trigger.c iio: imu: Use iio_trigger_get for indio_dev->trig assignment 2015-04-24 17:13:53 -04:00
Kconfig iio: imu: mpu6050: Move config entry into IMU menu 2014-02-08 12:27:30 +00:00
Makefile iio: Add a comment to about alphabetical order to Kconfigs and Makefiles 2013-08-03 18:40:36 +01:00