Skip to content

Commit 8a32aa1

Browse files
committed
fbdev: stifb: Make the STI next font pointer a 32-bit signed offset
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
1 parent b63b4f1 commit 8a32aa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/video/sticore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ struct sti_rom_font {
232232
u8 height;
233233
u8 font_type; /* language type */
234234
u8 bytes_per_char;
235-
u32 next_font;
235+
s32 next_font; /* note: signed int */
236236
u8 underline_height;
237237
u8 underline_pos;
238238
u8 res008[2];

0 commit comments

Comments
 (0)