]> git.baikalelectronics.ru Git - kernel.git/commit
vt/consolemap: do font sum unsigned
authorJiri Slaby <jslaby@suse.cz>
Tue, 5 Jan 2021 12:02:34 +0000 (13:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Jan 2021 15:17:31 +0000 (16:17 +0100)
commite0c9e7ef353f9e05135374d617d30a102da0d669
treef3d8d6401c297cbd394ef0402a2632286710a070
parent2a8aeb224b775eb560add2c5d26880dfecf74ddb
vt/consolemap: do font sum unsigned

The constant 20 makes the font sum computation signed which can lead to
sign extensions and signed wraps. It's not much of a problem as we build
with -fno-strict-overflow. But if we ever decide not to, be ready, so
switch the constant to unsigned.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210105120239.28031-7-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/consolemap.c