1
0
Fork 0
alistair23-linux/drivers/iio
Christophe JAILLET a6fe5dde53 iio: adc: ad7780: Fix a resource handling path in 'ad7780_probe()'
[ Upstream commit b0536f9826 ]

If 'ad7780_init_gpios()' fails, we must not release some resources that
have not been allocated yet. Return directly instead.

Fixes: 5bb30e7daf ("staging: iio: ad7780: move regulator to after GPIO init")
Fixes: 9085daa4ab ("staging: iio: ad7780: add gain & filter gpio support")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Renato Lui Geh <renatogeh@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-07-22 09:33:02 +02:00
..
accel iio: mma8452: Add missed iio_device_unregister() call in mma8452_probe() 2020-07-22 09:32:54 +02:00
adc iio: adc: ad7780: Fix a resource handling path in 'ad7780_probe()' 2020-07-22 09:33:02 +02:00
afe
amplifiers
buffer
chemical iio:chemical:pms7003: Fix timestamp alignment and prevent data leak. 2020-06-10 20:24:56 +02:00
common iio: st_sensors: rely on odr mask to know if odr can be set 2020-04-29 16:33:12 +02:00
dac iio: dac: vf610: Fix an error handling path in 'vf610_dac_probe()' 2020-05-27 17:46:45 +02:00
dummy
frequency
gyro iio: st_gyro: Correct data for LSM9DS0 gyro 2020-02-01 09:34:36 +00:00
health iio:health:afe4404 Fix timestamp alignment and prevent data leak. 2020-07-22 09:33:00 +02:00
humidity iio:humidity:hts221 Fix alignment and data leak issues 2020-07-22 09:32:54 +02:00
imu iio: imu: st_lsm6dsx: Fix selection of ST_LSM6DS3_ID 2020-01-23 08:22:33 +01:00
light iio: vcnl4000: Fix i2c swapped word reading. 2020-06-10 20:24:56 +02:00
magnetometer iio: magnetometer: ak8974: Fix runtime PM imbalance on error 2020-07-22 09:32:54 +02:00
multiplexer
orientation
potentiometer
potentiostat
pressure iio:pressure:ms5611 Fix buffer element alignment 2020-07-22 09:32:54 +02:00
proximity
resolver
temperature
trigger iio: trigger: stm32-timer: disable master mode when stopping 2020-03-25 08:25:53 +01:00
Kconfig
Makefile
iio_core.h
iio_core_trigger.h
industrialio-buffer.c iio: buffer: align the size of scan bytes to size of the largest element 2020-01-23 08:22:33 +01:00
industrialio-configfs.c
industrialio-core.c iio: core: add missing IIO_MOD_H2/ETHANOL string identifiers 2020-07-22 09:32:54 +02:00
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c