]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tty: vt/keyboard: use guard()s
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Wed, 19 Nov 2025 10:01:38 +0000 (11:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Nov 2025 17:30:40 +0000 (18:30 +0100)
commitdee7e10498c76490bb3bd5039c7c12d54585c26d
tree758e582e38be5d48d15c2d580022c172852193d1
parentd139b31f86b9ca56ee2424e46f0c2b5d23f15eda
tty: vt/keyboard: use guard()s

Use guards in the vt/keyboard code. This improves readability, makes
error handling easier, and marks locked portions of code explicit. All
that while being sure the lock is unlocked.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Link: https://patch.msgid.link/20251119100140.830761-9-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/keyboard.c