linux-stable/drivers/iio/temperature
Cosmin Tanislav 4132f19173 iio: temperature: ltc2983: allocate iio channels once
Currently, every time the device wakes up from sleep, the
iio_chan array is reallocated, leaking the previous one
until the device is removed (basically never).

Move the allocation to the probe function to avoid this.

Signed-off-by: Cosmin Tanislav <cosmin.tanislav@analog.com>
Fixes: f110f3188e ("iio: temperature: Add support for LTC2983")
Cc: <Stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20221014123724.1401011-2-demonsingur@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2022-10-17 08:51:26 +01:00
..
hid-sensor-temperature.c iio: hid-sensors: Update header includes 2021-06-16 14:53:13 +01:00
iqs620at-temp.c iio: temperature: iqs620at-temp: Add support for V3 silicon 2022-02-14 13:07:33 +00:00
Kconfig iio: temperature: Add MAX31865 RTD Support 2021-09-14 12:00:33 +01:00
ltc2983.c iio: temperature: ltc2983: allocate iio channels once 2022-10-17 08:51:26 +01:00
Makefile iio: temperature: Add MAX31865 RTD Support 2021-09-14 12:00:33 +01:00
max31856.c iio: temperature: max31856: Make use of device properties 2022-04-28 19:22:55 +01:00
max31865.c iio: temp: max31865: Fix alignment for DMA safety 2022-06-14 11:53:19 +01:00
maxim_thermocouple.c iio: temp: maxim_thermocouple: Fix alignment for DMA safety 2022-06-14 11:53:19 +01:00
mlx90614.c Char/Misc and other driver changes for 6.1-rc1 2022-10-08 08:56:37 -07:00
mlx90632.c Char/Misc and other driver changes for 6.1-rc1 2022-10-08 08:56:37 -07:00
tmp006.c iio:temperature:tmp006: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:46:03 +00:00
tmp007.c iio:temperature:tmp007: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:46:03 +00:00
tmp117.c iio: temperature: add driver support for ti tmp117 2021-05-17 13:49:05 +01:00
tsys01.c iio:common:meas-spec: Move exports into IIO_MEAS_SPEC_SENSORS 2022-02-18 11:42:26 +00:00
tsys02d.c iio:common:meas-spec: Move exports into IIO_MEAS_SPEC_SENSORS 2022-02-18 11:42:26 +00:00