]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tty: serial: samsung_tty: avoid dev_dbg deadlock
authorAlyssa Milburn <amilburn@zall.org>
Wed, 28 Jan 2026 11:28:54 +0000 (11:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2026 14:05:10 +0000 (15:05 +0100)
commit43c2b86ff633c34831c8430925ba73d7c20da1ad
tree0d72b10b27761a9f2a4bb9b0fc216c39095302d8
parent1f318b96cc84d7c2ab792fcc0bfd42a7ca890681
tty: serial: samsung_tty: avoid dev_dbg deadlock

commit a05025d0ce72 ("tty: serial: samsung_tty: use standard
debugging macros") changed the debug prints to dev_dbg, which can
result in deadlocks:

s3c24xx_serial_set_termios can be called with the port lock, and then
calls dev_dbg, which needs the console mutex. At the same time,
s3c24xx_serial_console_write can be called with the console lock
(e.g., inside console_unlock), and needs the port lock.

To avoid this, move one dev_dbg call and just delete the other.

Signed-off-by: Alyssa Milburn <amilburn@zall.org>
Link: https://patch.msgid.link/aXny9km6N1v9eoXU@zall.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung_tty.c