Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

vt: remove redundant check on vc_mode in con_font_set()

Previous commit edab558feba1 ("vt: sort out locking for font handling")
move the vc_mode check into console_lock protect, but forget to remove the
old check in con_font_set(). Just remove the redundant check.

Signed-off-by: Wang Liang <wangliang74@huawei.com>
Link: https://lore.kernel.org/r/20250904023345.13731-1-wangliang74@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Wang Liang and committed by
Greg Kroah-Hartman
45747017 fc6a5b54

-2
-2
drivers/tty/vt/vt.c
··· 4885 4885 int size; 4886 4886 unsigned int vpitch = op->op == KD_FONT_OP_SET_TALL ? op->height : 32; 4887 4887 4888 - if (vc->vc_mode != KD_TEXT) 4889 - return -EINVAL; 4890 4888 if (!op->data) 4891 4889 return -EINVAL; 4892 4890 if (op->charcount > max_font_glyphs)