]> Git Repo - linux.git/commit
vt: More locking checks
authorDaniel Vetter <[email protected]>
Tue, 28 May 2019 09:02:35 +0000 (11:02 +0200)
committerDaniel Vetter <[email protected]>
Wed, 12 Jun 2019 18:27:13 +0000 (20:27 +0200)
commitddde3c18b70061cc09b84a52624909349c212822
tree6dda603611fbbcb6bdafea499f4977046ef1e972
parenta135513c0b579be55c534b35e628be55578576b2
vt: More locking checks

I honestly have no idea what the subtle differences between
con_is_visible, con_is_fg (internal to vt.c) and con_is_bound are. But
it looks like both vc->vc_display_fg and con_driver_map are protected
by the console_lock, so probably better if we hold that when checking
this.

To do that I had to deinline the con_is_visible function.

Signed-off-by: Daniel Vetter <[email protected]>
Reviewed-by: Sam Ravnborg <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Reviewed-by: Maarten Lankhorst <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Nicolas Pitre <[email protected]>
Cc: Martin Hostettler <[email protected]>
Cc: Adam Borowski <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Mikulas Patocka <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/tty/vt/vt.c
include/linux/console_struct.h
This page took 0.058676 seconds and 4 git commands to generate.