fbdev: fix fb_pad_unaligned_buffer mask

mask is u8, so it should use 0xff instead of 0xfff

Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
Osama Abdelkader
2026-01-27 20:30:55 +01:00
committed by Helge Deller
parent eacf9840ae
commit 4a16b38033

View File

@@ -100,7 +100,7 @@ EXPORT_SYMBOL(fb_pad_aligned_buffer);
void fb_pad_unaligned_buffer(u8 *dst, u32 d_pitch, u8 *src, u32 idx, u32 height,
u32 shift_high, u32 shift_low, u32 mod)
{
u8 mask = (u8) (0xfff << shift_high), tmp;
u8 mask = (u8) (0xff << shift_high), tmp;
int i, j;
for (i = height; i--; ) {