alistair23-linux/drivers/iio
Martin Fuzzey c1b03ab5e8 iio: core: Fix double free.
When an error occurred during event registration memory was freed twice
resulting in kernel memory corruption and a crash in unrelated code.

The problem was caused by
	iio_device_unregister_eventset()
	iio_device_unregister_sysfs()

being called twice, once on the error path and then
again via iio_dev_release().

Fix this by making these two functions idempotent so they
may be called multiple times.

The problem was observed before applying
	78b33216 iio:core: Handle error when mask type is not separate

Signed-off-by: Martin Fuzzey <mfuzzey@parkeon.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2015-03-14 18:54:14 +00:00
..
accel iio: bmc150: change sampling frequency 2015-03-14 18:35:59 +00:00
adc iio: fix drivers that check buffer->scan_mask 2015-03-07 19:17:07 +00:00
amplifiers iio: amplifiers: ad8366: Use right order for type specification 2015-01-01 12:16:57 +00:00
common iio: common: ssp_sensors: Protect PM-only functions to kill warning 2015-02-22 09:46:55 +00:00
dac iio: ad5686: fix optional reference voltage declaration 2015-02-04 16:54:38 +00:00
frequency iio: frequency: ad9523: Increase sleep time in ad9523_store_eeprom 2015-01-01 12:18:26 +00:00
gyro iio: fix drivers that check buffer->scan_mask 2015-03-07 19:17:07 +00:00
humidity IIO: si7020: Allocate correct amount of memory in devm_iio_device_alloc 2015-02-14 11:35:12 +00:00
imu iio:inv-mpu6050: Fix inconsistency for the scale channel 2015-03-14 18:36:21 +00:00
light Second round of IIO fixes for the 4.0 cycle (or round one part two really!) 2015-02-28 07:19:27 -08:00
magnetometer iio: ak8975: fix AK09911 dependencies 2015-02-28 11:26:54 +00:00
orientation iio: hid-sensor-incl-3d: Introduce PM 2015-01-25 22:55:56 +00:00
pressure iio: hid-sensor-press: Introduce PM 2015-01-25 22:56:00 +00:00
proximity iio: fix drivers that check buffer->scan_mask 2015-03-07 19:17:07 +00:00
temperature
trigger iio: trigger: Add a blank line after declarations 2014-12-26 12:15:36 +00:00
buffer_cb.c
iio_core.h
iio_core_trigger.h
industrialio-buffer.c iio: Add new operating mode for non triggered sw buffers 2015-01-25 22:53:38 +00:00
industrialio-core.c iio: core: Fix double free. 2015-03-14 18:54:14 +00:00
industrialio-event.c iio: core: Fix double free. 2015-03-14 18:54:14 +00:00
industrialio-trigger.c
industrialio-triggered-buffer.c iio: kfifo: Remove unused argument in iio_kfifo_allocate 2014-12-26 11:20:38 +00:00
inkern.c First round of IIO new drivers, cleanups and functionality for the 3.20 cycle take 2 2015-01-21 10:13:37 +08:00
Kconfig Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild 2015-02-19 10:36:45 -08:00
kfifo_buf.c iio: kfifo: Add resource management devm_iio_kfifo_allocate/free 2014-12-26 11:39:57 +00:00
Makefile