summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorHaotian Zhang <vulab@iscas.ac.cn>2025-10-31 09:03:32 +0300
committerHans Verkuil <hverkuil+cisco@kernel.org>2025-11-11 12:17:33 +0300
commit1240abf4b71f632f0117b056e22488e4d9808938 (patch)
tree3a55d772210cc1157924cbbb160309bc40955e6c /include/linux/timerqueue.h
parent674961a9c87903bf2222a2c26809e013903a8960 (diff)
downloadlinux-1240abf4b71f632f0117b056e22488e4d9808938.tar.xz
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: a4b80242d046 ("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>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions