]> git.baikalelectronics.ru Git - kernel.git/commit
tty/vt: consolemap: use E_TABSZ for the translations size
authorJiri Slaby <jslaby@suse.cz>
Tue, 14 Jun 2022 09:05:37 +0000 (11:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jun 2022 12:17:12 +0000 (14:17 +0200)
commit62604de0649d15049863505dca15c306d6582863
tree585c1a73bf0df23454b05ebee69d255e6563dfe9
parentaecfb132d8d657458e9f20f9903824df2b396d1c
tty/vt: consolemap: use E_TABSZ for the translations size

The code expects "translations" to have 256 (E_TABSZ) values. Use the
macro instead of the constant to be explicit about this.

Suggested-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220614090537.15557-8-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/consolemap.c