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
Kconfig
Makefile
ati_remote.c
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
igorplugusb.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
iguanair.c
imon.c media: rc: fix races with imon_disconnect() 2025-09-11 08:46:10 +02:00
imon_raw.c
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
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
meson-ir-tx.c
meson-ir.c
mtk-cir.c
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
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
st_rc.c media: rc: st_rc: Fix reset control resource leak 2025-11-11 10:17:33 +01:00
streamzap.c
sunxi-cir.c
ttusbir.c
winbond-cir.c
xbox_remote.c