linux/arch/m68k/emu
Andreas Schwab 2f8e3cad53 m68k: nfcon: Do not call console_is_registered() in nfcon_device()
Since 7c2af0f634 ("tty: tty_io: use console_list_lock for list
synchronization") show_cons_active() calls the .device() method under
the console_list_lock, but console_is_registered() tries to acquire
console_list_lock as well, causing a deadlock.  It should not be
necessary to check console_is_registered() here since the function
should not be called in the fist place when the console is not
registered.

Fixes: 7c2af0f634 ("tty: tty_io: use console_list_lock for list synchronization")
Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Link: https://patch.msgid.link/87ecfzsv6h.fsf@igel.home
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
2026-08-17 11:33:19 +02:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
natfeat.c m68k: emu: Remove unused vsnprintf() return value in nfprint() 2023-10-06 10:03:02 +02:00
nfblock.c m68k: emu: Replace unbounded sprintf() in nfhd_init_one() 2026-04-08 11:15:21 +02:00
nfcon.c m68k: nfcon: Do not call console_is_registered() in nfcon_device() 2026-08-17 11:33:19 +02:00
nfeth.c m68k: emu: Mark version[] __maybe_unused 2023-10-06 10:03:02 +02:00