Eric W. Biederman 05d81d2222 serial8250: sanity check nr_uarts on all paths.
I had 8250.nr_uarts=16 in the boot line of a test kernel and I had a weird
mysterious crash in sysfs.  After taking an in-depth look I realized that
CONFIG_SERIAL_8250_NR_UARTS was set to 4 and I was walking off the end of
the serial8250_ports array.

Ouch!!!

Don't let this happen to someone else.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Alan Cox <alan@redhat.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-07-12 14:33:41 -07:00
..
2008-02-08 09:22:25 -08:00
2008-02-08 09:22:25 -08:00
2008-02-08 09:22:25 -08:00
2008-02-04 13:14:06 +00:00
2008-04-30 08:29:45 -07:00
2008-04-17 20:05:39 +02:00
2007-11-14 18:45:46 -08:00
2008-02-03 14:47:38 +02:00
2008-04-19 17:17:34 +01:00
2007-11-29 09:24:53 -08:00
2008-04-30 08:29:47 -07:00
2008-02-03 17:29:25 +02:00
2008-05-16 15:09:08 +09:00
2008-05-02 05:22:51 -07:00
2008-06-06 11:29:09 -07:00
2007-07-18 08:38:22 -07:00
2007-07-18 08:38:22 -07:00