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

powerpc: Fix old bug in prom_init setting of the color

We have an array of 16 entries and a loop of 32 iterations... oops.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

+1 -1
+1 -1
arch/powerpc/kernel/prom_init.c
··· 2080 2080 /* Setup a usable color table when the appropriate 2081 2081 * method is available. Should update this to set-colors */ 2082 2082 clut = RELOC(default_colors); 2083 - for (i = 0; i < 32; i++, clut += 3) 2083 + for (i = 0; i < 16; i++, clut += 3) 2084 2084 if (prom_set_color(ih, i, clut[0], clut[1], 2085 2085 clut[2]) != 0) 2086 2086 break;