Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f53638c authored by Benjamin Herrenschmidt's avatar Benjamin Herrenschmidt
Browse files

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: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 64968f60
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2080,7 +2080,7 @@ static void __init prom_check_displays(void)
		/* Setup a usable color table when the appropriate
		/* Setup a usable color table when the appropriate
		 * method is available. Should update this to set-colors */
		 * method is available. Should update this to set-colors */
		clut = RELOC(default_colors);
		clut = RELOC(default_colors);
		for (i = 0; i < 32; i++, clut += 3)
		for (i = 0; i < 16; i++, clut += 3)
			if (prom_set_color(ih, i, clut[0], clut[1],
			if (prom_set_color(ih, i, clut[0], clut[1],
					   clut[2]) != 0)
					   clut[2]) != 0)
				break;
				break;