linux-stable/drivers/extcon
Christophe JAILLET c8c6ce040b extcon: adc-jack: Fix an error handling path in 'adc_jack_probe()'
[ Upstream commit bc84cff2c9 ]

In some error handling paths, a call to 'iio_channel_get()' is not balanced
by a corresponding call to 'iio_channel_release()'.

This can be achieved easily by using the devm_ variant of
'iio_channel_get()'.

This has the extra benefit to simplify the remove function.

Fixes: 19939860dc ("extcon: adc_jack: adc-jack driver to support 3.5 pi or simliar devices")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-25 15:41:55 +02:00
..
devres.c
extcon-adc-jack.c extcon: adc-jack: Fix an error handling path in 'adc_jack_probe()' 2020-06-25 15:41:55 +02:00
extcon-arizona.c extcon: arizona: Disable mic detect if running when driver is removed 2019-05-31 06:47:28 -07:00
extcon-axp288.c
extcon-gpio.c
extcon-intel-cht-wc.c extcon: cht-wc: Return from default case to avoid warnings 2019-11-20 17:59:40 +01:00
extcon-intel-int3496.c
extcon-max3355.c
extcon-max8997.c extcon: max8997: Fix lack of path setting in USB device mode 2019-12-17 20:37:42 +01:00
extcon-max14577.c
extcon-max77693.c
extcon-max77843.c
extcon-palmas.c
extcon-qcom-spmi-misc.c
extcon-rt8973a.c
extcon-rt8973a.h
extcon-sm5502.c extcon: sm5502: Reset registers during initialization 2019-12-31 12:37:06 +01:00
extcon-sm5502.h extcon: sm5502: Reset registers during initialization 2019-12-31 12:37:06 +01:00
extcon-usb-gpio.c
extcon-usbc-cros-ec.c
extcon.c
extcon.h
Kconfig
Makefile