linux/drivers/iio/magnetometer
Lars-Peter Clausen 265c82ea8b iio: tmag5273: Fix runtime PM leak on measurement error
The tmag5273 gets a runtime PM reference before reading a measurement and
releases it when done. But if the measurement fails the tmag5273_read_raw()
function exits before releasing the reference.

Make sure that this error path also releases the runtime PM reference.

Fixes: 866a138917 ("iio: magnetometer: add ti tmag5273 driver")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Gerald Loacker <gerald.loacker@wolfvision.net>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20230414013752.498767-1-lars@metafoo.de
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2023-05-13 17:54:56 +01:00
..
ak8974.c iio: magnetometer: ak8974: Convert to i2c's .probe_new() 2022-11-23 20:20:29 +00:00
ak8975.c iio: magnetometer: ak8975: Convert to i2c's .probe_new() 2022-11-23 20:20:29 +00:00
bmc150_magn_i2c.c iio: magnetometer: bmc150_magn_i2c: Convert to i2c's .probe_new() 2022-11-23 20:20:30 +00:00
bmc150_magn_spi.c Char/Misc and other driver updates for 5.18-rc1 2022-03-28 12:27:35 -07:00
bmc150_magn.c iio:magnetometer:mbc150: Make bmc150_magn_remove() return void 2022-06-11 14:35:27 +01:00
bmc150_magn.h iio:magnetometer:mbc150: Make bmc150_magn_remove() return void 2022-06-11 14:35:27 +01:00
hid-sensor-magn-3d.c iio: hid-sensors: Update header includes 2021-06-16 14:53:13 +01:00
hmc5843_core.c iio: magn: hmc5843: Move struct dev_pm_ops out of header 2022-08-15 22:30:02 +01:00
hmc5843_i2c.c iio: magnetometer: hmc5843: Convert to i2c's .probe_new() 2022-11-23 20:20:30 +00:00
hmc5843_spi.c iio: magn: hmc5843: Move struct dev_pm_ops out of header 2022-08-15 22:30:02 +01:00
hmc5843.h iio: magn: hmc5843: Move struct dev_pm_ops out of header 2022-08-15 22:30:02 +01:00
Kconfig iio: magnetometer: st_magn: Add LSM303C 2023-01-08 13:01:02 +00:00
mag3110.c iio: magnetometer: mag3110: Convert to i2c's .probe_new() 2022-11-23 20:20:30 +00:00
Makefile iio: magnetometer: add ti tmag5273 driver 2022-12-28 17:19:44 +00:00
mmc35240.c iio: magnetometer: mmc35240: Convert to i2c's .probe_new() 2022-11-23 20:20:30 +00:00
rm3100-core.c iio: magnetometer: rm3100: do not explicity set INDIO_BUFFER_TRIGGERED mode 2022-07-16 17:57:22 +01:00
rm3100-i2c.c iio:magnetometer:rm3100: Move exports to IIO_RM3100 namespace 2022-02-18 11:42:27 +00:00
rm3100-spi.c iio:magnetometer:rm3100: Move exports to IIO_RM3100 namespace 2022-02-18 11:42:27 +00:00
rm3100.h
st_magn_buffer.c iio:st-sensors: Remove duplicate MODULE_* 2022-02-18 11:36:54 +00:00
st_magn_core.c iio: magnetometer: st_magn: Add LSM303C 2023-01-08 13:01:02 +00:00
st_magn_i2c.c iio: magnetometer: st_magn: Add LSM303C 2023-01-08 13:01:02 +00:00
st_magn_spi.c iio: magnetometer: st_magn: Add LSM303C 2023-01-08 13:01:02 +00:00
st_magn.h iio: magnetometer: st_magn: Add LSM303C 2023-01-08 13:01:02 +00:00
tmag5273.c iio: tmag5273: Fix runtime PM leak on measurement error 2023-05-13 17:54:56 +01:00
yamaha-yas530.c iio: magnetometer: yamaha-yas530: Convert to i2c's .probe_new() 2022-11-23 20:20:30 +00:00