Skip to content

Commit e76df4d

Browse files
Ondrej ZaryRussell King
authored andcommitted
cyber2000fb: fix console in truecolor modes
Return value was not set to 0 in setcolreg() with truecolor modes. This causes fb_set_cmap() to abort after first color, resulting in blank palette - and blank console in 24bpp and 32bpp modes. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 00b4703 commit e76df4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/video/cyber2000fb.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ cyber2000fb_setcolreg(u_int regno, u_int red, u_int green, u_int blue,
388388
pseudo_val |= convert_bitfield(red, &var->red);
389389
pseudo_val |= convert_bitfield(green, &var->green);
390390
pseudo_val |= convert_bitfield(blue, &var->blue);
391+
ret = 0;
391392
break;
392393
}
393394

0 commit comments

Comments
 (0)