1 Index: linux-2.6.38-rc6/arch/arm/mach-omap2/serial.c
2 ===================================================================
3 --- linux-2.6.38-rc6.orig/arch/arm/mach-omap2/serial.c 2011-02-22 02:25:52.000000000 +0100
4 +++ linux-2.6.38-rc6/arch/arm/mach-omap2/serial.c 2011-02-26 22:17:38.356027926 +0100
9 +static struct omap_uart_state statebuf[4];
11 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];