mirror-linux/drivers/media/rc
Haotian Zhang 1240abf4b7 media: rc: st_rc: Fix reset control resource leak
The driver calls reset_control_get_optional_exclusive() but never calls
reset_control_put() in error paths or in the remove function. This causes
a resource leak when probe fails after successfully acquiring the reset
control, or when the driver is unloaded.

Switch to devm_reset_control_get_optional_exclusive() to automatically
manage the reset control resource.

Fixes: a4b80242d0 ("media: st-rc: explicitly request exclusive reset control")
Cc: stable@vger.kernel.org
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
2025-11-11 10:17:33 +01:00
..
img-ir treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
keymaps media: rc: add keymap for Hauppauge Credit Card RC 2025-04-30 09:35:24 +02:00
Kconfig media: gpio-ir-tx: Driver does not behave with PREEMPT_RT 2024-10-08 11:07:45 +02:00
Makefile
ati_remote.c media: ati_remote: don't push static constants on stack for %*ph 2024-10-29 16:37:23 +01:00
bpf-lirc.c
ene_ir.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
ene_ir.h
fintek-cir.c
fintek-cir.h
gpio-ir-recv.c media: Remove redundant pm_runtime_mark_last_busy() calls 2025-08-18 09:55:08 +02:00
gpio-ir-tx.c media: gpio-ir-tx: Remove redundant call to local_irq_disable() 2024-10-08 11:07:45 +02:00
igorplugusb.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
iguanair.c media: rc: iguanair: handle timeouts 2024-12-11 19:48:17 +01:00
imon.c media: rc: fix races with imon_disconnect() 2025-09-11 08:46:10 +02:00
imon_raw.c media: imon: don't push static constants on stack for %*ph 2024-12-11 19:48:17 +01:00
ir-hix5hd2.c media: ir-hix5hd2: Drop unused module alias 2025-11-11 10:17:33 +01:00
ir-imon-decoder.c
ir-jvc-decoder.c
ir-mce_kbd-decoder.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
ir-nec-decoder.c
ir-rc5-decoder.c
ir-rc6-decoder.c
ir-rcmm-decoder.c
ir-sanyo-decoder.c
ir-sharp-decoder.c
ir-sony-decoder.c
ir-spi.c media: rc: ir-spi: avoid overflow in multiplication 2025-06-23 12:11:04 +02:00
ir-xmp-decoder.c
ir_toy.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
ite-cir.c
ite-cir.h
lirc_dev.c media: lirc: Fix error handling in lirc_register() 2025-08-15 09:47:13 +02:00
mceusb.c media: mceusb: don't include 'pm_wakeup.h' directly 2024-12-11 19:48:17 +01:00
meson-ir-tx.c
meson-ir.c media: Switch back to struct platform_driver::remove() 2024-10-12 16:28:25 +02:00
mtk-cir.c media: Switch back to struct platform_driver::remove() 2024-10-12 16:28:25 +02:00
nuvoton-cir.c
nuvoton-cir.h
pwm-ir-tx.c media: pwm-ir-tx: Avoid direct access to hrtimer clockbase 2025-09-09 12:27:18 +02:00
rc-core-priv.h media: rc: reduce useless padding in struct rc_dev etc 2025-03-04 15:56:11 +01:00
rc-ir-raw.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
rc-loopback.c
rc-main.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
redrat3.c media: redrat3: use int type to store negative error codes 2025-09-11 08:46:10 +02:00
serial_ir.c treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
st_rc.c media: rc: st_rc: Fix reset control resource leak 2025-11-11 10:17:33 +01:00
streamzap.c media: streamzap: prevent processing IR data on URB failure 2025-02-13 12:12:30 +01:00
sunxi-cir.c media: Switch back to struct platform_driver::remove() 2024-10-12 16:28:25 +02:00
ttusbir.c
winbond-cir.c
xbox_remote.c