Skip to content

Commit 4a16b38

Browse files
osamakaderhdeller
authored andcommitted
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>
1 parent eacf984 commit 4a16b38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/video/fbdev/core/fbmem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ EXPORT_SYMBOL(fb_pad_aligned_buffer);
100100
void fb_pad_unaligned_buffer(u8 *dst, u32 d_pitch, u8 *src, u32 idx, u32 height,
101101
u32 shift_high, u32 shift_low, u32 mod)
102102
{
103-
u8 mask = (u8) (0xfff << shift_high), tmp;
103+
u8 mask = (u8) (0xff << shift_high), tmp;
104104
int i, j;
105105

106106
for (i = height; i--; ) {

0 commit comments

Comments
 (0)