mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
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:
committed by
Helge Deller
parent
eacf9840ae
commit
4a16b38033
@@ -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--; ) {
|
||||
|
||||
Reference in New Issue
Block a user