Date:2012-06-16 21:17:33 (11 years 9 months ago)
Author:Maarten ter Huurne
Commit:d072b59e483b3b9bd66a5d7347fa2e99746e747b
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
23112311    fbcon_set_palette(vc, color_table);
23122312    fbcon_clear_margins(vc, 0);
23132313
2314/* TODO: Figure out why the logo gets accessed after the init phase ends
2315 * when using the JZ4740 SLCD driver.
2316 */
2317#ifndef CONFIG_FB_JZ4740_SLCD
23142318    if (logo_shown == FBCON_LOGO_DRAW) {
23152319
23162320        logo_shown = fg_console;
...... 
23222326                         vc->vc_top) / 2);
23232327        return 0;
23242328    }
2329#endif
23252330    return 1;
23262331}
23272332

Archive Download the corresponding diff file



interactive