Linux USB
 help / color / mirror / Atom feed
* [PATCH] xhci: dbgtty: fix device unregister: fixup typo
@ 2025-11-25 14:25 Łukasz Bartosik
  2025-11-26  7:15 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 10+ messages in thread
From: Łukasz Bartosik @ 2025-11-25 14:25 UTC (permalink / raw)
  To: Mathias Nyman, Greg Kroah-Hartman; +Cc: linux-usb, Łukasz Bartosik

From: Łukasz Bartosik <ukaszb@chromium.org>

When DbC is disconnected then xhci_dbc_tty_unregister_device()
is called. However if there is any user space process blocked
on write to DbC terminal device then it will never be signalled
and thus stay blocked indefinitely.

This fix adds a tty_vhangup() call in xhci_dbc_tty_unregister_device().
The tty_vhangup() wakes up any blocked writers and causes subsequent
write attempts to DbC terminal device to fail.

Fixes: dfba2174dc42 ("usb: xhci: Add DbC support in xHCI driver")
Signed-off-by: Łukasz Bartosik <ukaszb@chromium.org>
Link: https://patch.msgid.link/20251119212910.1245694-1-ukaszb@google.com

Fix typo indifinitely->indefinitely

--
2.52.0.460.gd25c4c69ec-goog

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-11-27 14:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-25 14:25 [PATCH] xhci: dbgtty: fix device unregister: fixup typo Łukasz Bartosik
2025-11-26  7:15 ` Greg Kroah-Hartman
2025-11-26  7:58   ` Łukasz Bartosik
2025-11-26  9:15     ` Mathias Nyman
2025-11-26  9:50       ` Łukasz Bartosik
2025-11-26  9:56         ` Jiri Slaby
2025-11-26 12:26           ` Łukasz Bartosik
2025-11-26 14:05             ` Łukasz Bartosik
2025-11-27 14:19               ` Łukasz Bartosik
2025-11-26 10:14     ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox