1 Index: linux-2.6.38-rc7/arch/arm/mach-omap2/serial.c
2 ===================================================================
3 --- linux-2.6.38-rc7.orig/arch/arm/mach-omap2/serial.c 2011-03-07 17:24:16.786259530 +0100
4 +++ linux-2.6.38-rc7/arch/arm/mach-omap2/serial.c 2011-03-07 17:24:18.951998600 +0100
5 @@ -660,6 +660,8 @@ static void serial_out_override(struct u
9 +static struct omap_uart_state statebuf[4];
11 void __init omap_serial_early_init(void)
14 @@ -675,9 +677,9 @@ void __init omap_serial_early_init(void)
18 - uart = kzalloc(sizeof(struct omap_uart_state), GFP_KERNEL);
20 + if (WARN_ON(i >= ARRAY_SIZE(statebuf)))
22 + uart = &statebuf[i];