linux-stable/drivers/iio
Christophe JAILLET 5d6ad5a030 iio: sca3000: Fix an error handling path in 'sca3000_probe()'
commit 4a5b45383c upstream.

Use 'devm_iio_kfifo_allocate()' instead of 'iio_kfifo_allocate()' in order
to simplify code and avoid a memory leak in an error path in
'sca3000_probe()'. A call to 'sca3000_unconfigure_ring()' was missing.

Sent via the next merge window as unimportant bug and there are
other patches dependent on it.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-03 11:24:57 +02:00
..
accel iio: sca3000: Fix an error handling path in 'sca3000_probe()' 2018-07-03 11:24:57 +02:00
adc iio: adc: ad7791: remove sample freq sysfs attributes 2018-07-03 11:24:57 +02:00
amplifiers
buffer iio:kfifo_buf: check for uint overflow 2018-06-05 11:41:58 +02:00
chemical iio: chemical: ccs811: Corrected firmware boot/application mode transition 2018-03-28 18:24:28 +02:00
common iio: st_sensors: add register mask for status register 2017-12-25 14:26:26 +01:00
counter iio: counter: Add support for STM32 LPTimer 2017-09-04 14:49:30 +01:00
dac License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
dummy License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
frequency
gyro iio: st_sensors: add register mask for status register 2017-12-25 14:26:26 +01:00
health iio: health: max30102: Add power enable parameter to get_temp function 2018-03-19 08:42:51 +01:00
humidity License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
imu iio: imu: st_lsm6dsx: fix endianness in st_lsm6dsx_read_oneshot() 2018-03-28 18:24:49 +02:00
light License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
magnetometer iio: st_sensors: add register mask for status register 2017-12-25 14:26:26 +01:00
multiplexer iio: multiplexer: add NULL check on devm_kzalloc() and devm_kmemdup() return values 2017-12-10 13:40:43 +01:00
orientation iio: orientation: hid-sensor-rotation: Drop unnecessary static 2017-07-17 21:45:01 +01:00
potentiometer License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
potentiostat
pressure iio: st_pressure: st_accel: pass correct platform data to init 2018-03-28 18:24:28 +02:00
proximity iio: srf08: fix link error "devm_iio_triggered_buffer_setup" undefined 2018-02-28 10:19:40 +01:00
temperature License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
trigger License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
iio_core.h
iio_core_trigger.h
industrialio-buffer.c iio: buffer: check if a buffer has been set up when poll is called 2018-02-28 10:19:40 +01:00
industrialio-configfs.c
industrialio-core.c iio: fix kernel-doc build errors 2018-02-25 11:07:58 +01:00
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c iio: trigger: fix NULL pointer dereference in iio_trigger_write_current() 2017-05-21 12:36:59 +01:00
industrialio-triggered-event.c
inkern.c First round of IIO new device support, features and cleanups for the 4.14 cycle. 2017-07-27 21:29:49 -07:00
Kconfig iio: multiplexer: new iio category and iio-mux driver 2017-06-03 19:29:26 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00