linux-stable/drivers/extcon
Matti Vaittinen 1ad25a64c6 extcon: extcon-max8997: Fix IRQ freeing at error path
[ Upstream commit 610bdc0483 ]

If reading MAX8997_MUIC_REG_STATUS1 fails at probe the driver exits
without freeing the requested IRQs.

Free the IRQs prior returning if reading the status fails.

Fixes: 3e34c81989 ("extcon: max8997: Avoid forcing UART path on drive probe")
Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Link: https://lore.kernel.org/r/27ee4a48ee775c3f8c9d90459c18b6f2b15edc76.1623146580.git.matti.vaittinen@fi.rohmeurope.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-14 16:53:24 +02:00
..
devres.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00
extcon-adc-jack.c extcon: adc-jack: Fix an error handling path in 'adc_jack_probe()' 2020-06-24 17:50:36 +02:00
extcon-arizona.c extcon: arizona: Fix various races on driver unbind 2021-05-11 14:04:09 +02:00
extcon-axp288.c extcon: axp288: Add wakeup support 2020-04-08 09:08:43 +02:00
extcon-fsa9480.c extcon: fsa9480: Support the FSA880 variant 2019-07-24 19:10:19 +09:00
extcon-gpio.c extcon: gpio: Request reasonable interrupts 2019-07-24 19:20:19 +09:00
extcon-intel-cht-wc.c extcon-intel-cht-wc: Don't reset USB data connection at probe 2020-02-01 09:34:46 +00:00
extcon-intel-int3496.c
extcon-intel-mrfld.c
extcon-intel.h
extcon-max3355.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 233 2019-06-19 17:09:06 +02:00
extcon-max8997.c extcon: extcon-max8997: Fix IRQ freeing at error path 2021-07-14 16:53:24 +02:00
extcon-max14577.c
extcon-max77693.c extcon: max77693: Fix modalias string 2020-12-30 11:51:24 +01:00
extcon-max77843.c extcon: extcon-max77843: convert to i2c_new_dummy_device 2019-07-24 18:59:05 +09:00
extcon-palmas.c
extcon-ptn5150.c extcon: ptn5150: Fix usage of atomic GPIO with sleeping GPIO chips 2020-11-05 11:43:24 +01:00
extcon-qcom-spmi-misc.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
extcon-rt8973a.c
extcon-rt8973a.h
extcon-sm5502.c extcon: sm5502: Reset registers during initialization 2019-12-31 16:44:04 +01:00
extcon-sm5502.h extcon: sm5502: Reset registers during initialization 2019-12-31 16:44:04 +01:00
extcon-usb-gpio.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
extcon-usbc-cros-ec.c mfd / platform: cros_ec: Reorganize platform and mfd includes 2019-09-02 11:33:42 +01:00
extcon.c extcon: Fix error handling in extcon_dev_register 2021-04-07 14:47:43 +02:00
extcon.h
Kconfig mfd / platform: cros_ec: Move cros-ec core driver out from MFD 2019-09-02 11:33:12 +01:00
Makefile extcon: Add fsa9480 extcon driver 2019-06-22 21:34:51 +09:00