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

fbdev: clean the penguin's dirty feet

When booting in a direct color mode, the penguin has dirty feet, i.e.,
some pixels have the wrong color. This is caused by
fb_set_logo_directpalette() which does not initialize the last 32 palette
entries.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Krzysztof Helt <krzysztof.h1@poczta.fm>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Clemens Ladisch and committed by
Linus Torvalds
cf7ee554 e00b4ff7

+1 -1
+1 -1
drivers/video/fbmem.c
··· 230 230 greenshift = info->var.green.offset; 231 231 blueshift = info->var.blue.offset; 232 232 233 - for (i = 32; i < logo->clutsize; i++) 233 + for (i = 32; i < 32 + logo->clutsize; i++) 234 234 palette[i] = i << redshift | i << greenshift | i << blueshift; 235 235 } 236 236