]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fbdev: stifb: Make the STI next font pointer a 32-bit signed offset
authorHelge Deller <deller@gmx.de>
Fri, 27 Oct 2023 11:36:48 +0000 (13:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2023 17:15:01 +0000 (17:15 +0000)
commit369f7c467211d0edabf587c7e452dc2b8f5f0bec
tree605c9476f4a673258e4a619ce55543780380c497
parent836db2e7e4565d8218923b3552304a1637e2f28d
fbdev: stifb: Make the STI next font pointer a 32-bit signed offset

commit 8a32aa17c1cd48df1ddaa78e45abcb8c7a2220d6 upstream.

The pointer to the next STI font is actually a signed 32-bit
offset. With this change the 64-bit kernel will correctly subract
the (signed 32-bit) offset instead of adding a (unsigned 32-bit)
offset. It has no effect on 32-bit kernels.

This fixes the stifb driver with a 64-bit kernel on qemu.

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/video/sticore.h