linux/drivers/iio
Darshana Padmadas aef7093203 iio: imu: Use iio_trigger_get for indio_dev->trig assignment
commit 4ce7ca89d6 upstream.

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>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-04-19 10:11:07 +02:00
..
accel iio: accel: bma180: Fix indio_dev->trig assignment 2014-10-05 14:52:17 -07:00
adc iio:adc:mcp3422 Fix incorrect scales table 2015-03-18 13:31:26 +01:00
amplifiers iio: amplifiers: ad8366: Remove regulator_put 2013-09-28 11:49:45 +01:00
common iio: st_sensors: Fix buffer copy 2014-11-14 09:00:01 -08:00
dac iio: ad5686: fix optional reference voltage declaration 2015-03-18 13:31:26 +01:00
frequency Merge 3.12-rc6 into staging-next. 2013-10-19 13:14:34 -07:00
gyro iio: gyro: itg3200: Fix indio_dev->trig assignment 2014-10-05 14:52:18 -07:00
humidity iio: Add new driver dht11 2013-12-03 20:22:30 +00:00
imu iio: imu: Use iio_trigger_get for indio_dev->trig assignment 2015-04-19 10:11:07 +02:00
light iio: cm36651: Fix i2c client leak and possible NULL pointer dereference 2014-05-06 07:59:27 -07:00
magnetometer iio:magnetometer: bugfix magnetometers gain values 2014-10-05 14:52:18 -07:00
orientation iio: hid-sensors: Added Inclinometer 3D 2013-12-03 20:31:59 +00:00
pressure iio: Fix two mpl3115 issues in measurement conversion 2014-06-26 15:15:42 -04:00
temperature Merge 3.12-rc2 into staging-next. 2013-09-25 08:59:04 -07:00
trigger iio:trigger: fix sysfs name on list mutex 2013-09-28 11:51:16 +01:00
Kconfig iio: hid-sensors: Added Inclinometer 3D 2013-12-03 20:31:59 +00:00
Makefile iio: hid-sensors: Added Inclinometer 3D 2013-12-03 20:31:59 +00:00
buffer_cb.c iio: Add reference counting for buffers 2013-10-12 12:04:01 +01:00
iio_core.h iio: Factor IIO value formating into its own function 2013-10-12 12:23:33 +01:00
iio_core_trigger.h iio: fix semicolon in io_core_trigger.h 2013-08-03 18:40:32 +01:00
industrialio-buffer.c iio: buffer: Fix demux table creation 2014-08-07 14:52:37 -07:00
industrialio-core.c iio: Add support for humidity sensors 2013-12-03 20:22:29 +00:00
industrialio-event.c iio:core: Handle error when mask type is not separate 2014-07-28 08:05:57 -07:00
industrialio-trigger.c iio:trigger: Convert to use ATTRIBUTE_GROUPS 2013-12-03 20:22:29 +00:00
industrialio-triggered-buffer.c iio:triggered-buffer: Remove redundant call to iio_sw_buffer_preenable(). 2013-10-16 19:12:47 +01:00
inkern.c iio:inkern: fix overwritten -EPROBE_DEFER in of_iio_channel_get_by_name 2014-10-05 14:52:18 -07:00
kfifo_buf.c iio: kfifo_buf: Implement data_available() callback 2013-12-03 20:22:28 +00:00