summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorWentao Liang <vulab@iscas.ac.cn>2026-09-17 15:55:23 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-09-23 12:21:40 +0200
commitef3134cd0d4831ae2137aee2883987859b80b2c6 (patch)
tree28328388acd14cbfa072a581c14320d51486cf32 /tools/lib/python
parent98401cf912fe8a081ef8e500c421b6d957b55a99 (diff)
downloadlinux-next-ef3134cd0d4831ae2137aee2883987859b80b2c6.tar.gz
linux-next-ef3134cd0d4831ae2137aee2883987859b80b2c6.zip
kgdboc: Fix tty driver reference leak in configure_kgdboc()
tty_find_polling_driver() returns the tty driver with an extra reference taken by tty_driver_kref_get(). configure_kgdboc() stores it in kgdb_tty_driver but the reference is never dropped: it is leaked when kgdb_register_io_module() fails, when the configuration is cleared, and on every reconfigure. Release the reference both when unconfiguring and on the error path. Fixes: 7d7b93c1452f ("tty: kref the tty driver object") Cc: stable@kernel.org Signed-off-by: Wentao Liang <vulab@iscas.ac.cn> Reviewed-by: Douglas Anderson <dianders@chromium.org> Link: https://patch.msgid.link/20260917155523.2161202-1-vulab@iscas.ac.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions