Date:2012-06-16 21:17:33 (8 years 3 months ago)
Author:Maarten ter Huurne
Commit:62479db0d76a30fee3b9ced4a79d012341eff50a
Message:MIPS: JZ4740: Work around fbcon logo crash with SLCD

The logo data is in the init section. However, when using the SLCD driver,
the fbcon code will try to fetch the logo data after the init section has
already been freed, potentially crashing the kernel.

This is a workaround because we have to release a stable kernel now.
The root cause should be found and fixed later.
Files: drivers/video/console/fbcon.c (2 diffs)

Change Details

drivers/video/console/fbcon.c
23592359    fbcon_set_palette(vc, color_table);
23602360    fbcon_clear_margins(vc, 0);
23612361
2362/* TODO: Figure out why the logo gets accessed after the init phase ends
2363 * when using the JZ4740 SLCD driver.
2364 */
2365#ifndef CONFIG_FB_JZ4740_SLCD
23622366    if (logo_shown == FBCON_LOGO_DRAW) {
23632367
23642368        logo_shown = fg_console;
...... 
23702374                         vc->vc_top) / 2);
23712375        return 0;
23722376    }
2377#endif
23732378    return 1;
23742379}
23752380

Archive Download the corresponding diff file



interactive