kernel_optimize_test/drivers/iio
Miaoqian Lin 501652a2ad iio: adc: adi-axi-adc: Fix refcount leak in adi_axi_adc_attach_client
commit ada7b0c0dedafd7d059115adf49e48acba3153a8 upstream.

of_parse_phandle() returns a node pointer with refcount
incremented, we should use of_node_put() on it when not need anymore.
Add missing of_node_put() to avoid refcount leak.

Fixes: ef04070692 ("iio: adc: adi-axi-adc: add support for AXI ADC IP core")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220524074517.45268-1-linmq006@gmail.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-29 08:59:52 +02:00
..
accel iio: accel: mma8452: ignore the return value of reset operation 2022-06-29 08:59:52 +02:00
adc iio: adc: adi-axi-adc: Fix refcount leak in adi_axi_adc_attach_client 2022-06-29 08:59:52 +02:00
afe
amplifiers
buffer
chemical iio:chemical:ccs811: rearrange iio trigger get and register 2022-06-29 08:59:51 +02:00
common iio: st_sensors: Add a local lock for protecting odr 2022-06-14 18:32:41 +02:00
dac
dummy iio: dummy: iio_simple_dummy: check the return value of kstrdup() 2022-06-14 18:32:41 +02:00
frequency
gyro iio: gyro: mpu3050: Fix the error handling in mpu3050_power_up() 2022-06-29 08:59:52 +02:00
health
humidity
imu iio: imu: inv_icm42600: Fix broken icm42600 (chip id 0 value) 2022-06-29 08:59:52 +02:00
light
magnetometer
multiplexer
orientation
position
potentiometer
potentiostat
pressure
proximity
resolver
temperature
trigger iio: trigger: sysfs: fix use-after-free on remove 2022-06-29 08:59:52 +02:00
iio_core_trigger.h
iio_core.h
industrialio-buffer.c
industrialio-configfs.c
industrialio-core.c
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c
industrialio-triggered-event.c
inkern.c
Kconfig
Makefile
TODO