]> git.ipfire.org Git - thirdparty/kernel/stable.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>
Sun, 7 Mar 2021 10:27:44 +0000 (11:27 +0100)
commitb79e5277d637099ce5c924f3b32b1ee7e704e459
tree6a6fef120c0f793ff19f546beba4db0e56e995cb
parent0211d3c8ed034768810e7370f01265af35c4ab38
vt/consolemap: do font sum unsigned

[ Upstream commit 9777f8e60e718f7b022a94f2524f967d8def1931 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/vt/consolemap.c