summaryrefslogtreecommitdiff
path: root/kernel/locking/mutex-debug.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2020-02-24 00:03:26 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-02 19:02:39 +0200
commit55280d879b8810d1db6024dc38b5e3c1964d528a (patch)
tree91c397506b5853b0e24deefa2729dbcb64db998f /kernel/locking/mutex-debug.c
parent94141b4fa4a439010436f8fe64861e5e6a38dba1 (diff)
vt: vt_ioctl: remove unnecessary console allocation checks
commit 1aa6e058dd6cd04471b1f21298270014daf48ac9 upstream. The vc_cons_allocated() checks in vt_ioctl() and vt_compat_ioctl() are unnecessary because they can only be reached by calling ioctl() on an open tty, which implies the corresponding virtual console is allocated. And even if the virtual console *could* be freed concurrently, then these checks would be broken since they aren't done under console_lock, and the vc_data is dereferenced before them anyway. So, remove these unneeded checks to avoid confusion. Signed-off-by: Eric Biggers <ebiggers@google.com> Link: https://lore.kernel.org/r/20200224080326.295046-1-ebiggers@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/locking/mutex-debug.c')
0 files changed, 0 insertions, 0 deletions