]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xhci: dbgtty: fix device unregister: fixup
authorŁukasz Bartosik <ukaszb@chromium.org>
Thu, 27 Nov 2025 11:16:44 +0000 (11:16 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Jan 2026 11:57:14 +0000 (12:57 +0100)
commit687ccc341f63cf21a351faa2196c82f0c90aff6d
tree407739f6c7de9a5dafb8f227e1873f0cc9e2c83c
parentfd00f88ef36bbd850cbd409b210fe86aa53a2746
xhci: dbgtty: fix device unregister: fixup

commit 74098cc06e753d3ffd8398b040a3a1dfb65260c0 upstream.

This fixup replaces tty_vhangup() call with call to
tty_port_tty_vhangup(). Both calls hangup tty device
synchronously however tty_port_tty_vhangup() increases
reference count during the hangup operation using
scoped_guard(tty_port_tty).

Cc: stable <stable@kernel.org>
Fixes: 1f73b8b56cf3 ("xhci: dbgtty: fix device unregister")
Signed-off-by: Łukasz Bartosik <ukaszb@chromium.org>
Link: https://patch.msgid.link/20251127111644.3161386-1-ukaszb@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-dbgtty.c