summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2023-10-27 13:36:48 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-11-28 17:15:01 +0000
commit369f7c467211d0edabf587c7e452dc2b8f5f0bec (patch)
tree605c9476f4a673258e4a619ce55543780380c497 /include
parent836db2e7e4565d8218923b3552304a1637e2f28d (diff)
downloadlinux-stable-369f7c467211d0edabf587c7e452dc2b8f5f0bec.tar.gz
linux-stable-369f7c467211d0edabf587c7e452dc2b8f5f0bec.tar.bz2
linux-stable-369f7c467211d0edabf587c7e452dc2b8f5f0bec.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/video/sticore.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/video/sticore.h b/include/video/sticore.h
index 945ad60463a1..012b5b46ad7d 100644
--- a/include/video/sticore.h
+++ b/include/video/sticore.h
@@ -232,7 +232,7 @@ struct sti_rom_font {
u8 height;
u8 font_type; /* language type */
u8 bytes_per_char;
- u32 next_font;
+ s32 next_font; /* note: signed int */
u8 underline_height;
u8 underline_pos;
u8 res008[2];