Date:2012-06-16 21:17:33 (7 years 5 months ago)
Author:Maarten ter Huurne
Commit:92eebd0a3b1181ad5904903698f85b3716ae3c10
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
23182318    fbcon_set_palette(vc, color_table);
23192319    fbcon_clear_margins(vc, 0);
23202320
2321/* TODO: Figure out why the logo gets accessed after the init phase ends
2322 * when using the JZ4740 SLCD driver.
2323 */
2324#ifndef CONFIG_FB_JZ4740_SLCD
23212325    if (logo_shown == FBCON_LOGO_DRAW) {
23222326
23232327        logo_shown = fg_console;
...... 
23292333                         vc->vc_top) / 2);
23302334        return 0;
23312335    }
2336#endif
23322337    return 1;
23332338}
23342339

Archive Download the corresponding diff file



interactive