[PATCH 1/2 v2] ARM: OMAP4: Fix NULL pointer dereference crash.

From
Kevin Hilman <hidden>
Date
2009-08-24 12:39:39
Also in
linux-omap
"Shilimkar, Santosh" [off-list ref] writes:
quoted
quoted
quoted
 static inline unsigned int serial_read_reg(struct plat_serial8250_port
*up,
quoted
quoted
 					   int offset)
 {
@@ -550,6 +564,17 @@ static struct omap_uart_state
omap_uart[OMAP_MAX_NR_PORTS] = {
quoted
quoted
 			},
 		},
 	},
+#ifdef CONFIG_ARCH_OMAP4
+	{
+		.pdev = {
+			.name			= "serial8250",
+			.id			= PLAT8250_DEV_FOURPORT,
This should not be FOURPORT, it should just be a number.  In this case,
it should be 3 (the others start from zero.)
Santosh,

I've changed the .id field to '3' and will queue up this fix for the
next merge window along with my fixes queue[1].  Please let me know if you
want to do otherwise.
This is fine Kevin. Thanks !!

Bye the way I have also posted v3 version in which I changed the .id field to 3.
Yeah, saw that after I replied.  Thanks!

Kevin
Thread (1 message) 1 message, 1 author, last reply 2009-08-24
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help