Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Osama Abdelkader and committed by
Helge Deller
4a16b380 eacf9840

+1 -1
+1 -1
drivers/video/fbdev/core/fbmem.c
··· 100 100 void fb_pad_unaligned_buffer(u8 *dst, u32 d_pitch, u8 *src, u32 idx, u32 height, 101 101 u32 shift_high, u32 shift_low, u32 mod) 102 102 { 103 - u8 mask = (u8) (0xfff << shift_high), tmp; 103 + u8 mask = (u8) (0xff << shift_high), tmp; 104 104 int i, j; 105 105 106 106 for (i = height; i--; ) {