]> 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>
Fri, 8 Dec 2023 07:48:04 +0000 (08:48 +0100)
commitdb78835b68c62f542b0579160753e30f2ab27d88
tree7b301d9cb869501fbfec9478389c18ac739ac565
parent711ee151a3033e5884294aab6f44a5dc1070489a
fbdev: stifb: Make the STI next font pointer a 32-bit signed offset

[ Upstream commit 8a32aa17c1cd48df1ddaa78e45abcb8c7a2220d6 ]

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: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/sticore.h