]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Serial: Fix small CONFIG_SERIAL_8250_NR_UARTS
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Thu, 30 Jun 2005 21:41:22 +0000 (22:41 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 30 Jun 2005 21:41:22 +0000 (22:41 +0100)
commit4dd726814176aea82921473a0aa9afe9fbbc7806
tree823fa555fe7c419c4cbc0616fff5b6dadd4d81fa
parentfa426357cd83dc432e0761e170eb6833d463f888
[PATCH] Serial: Fix small CONFIG_SERIAL_8250_NR_UARTS

If CONFIG_SERIAL_8250_NR_UARTS is smaller than the array size in
asm/serial.h, we trampled on memory which wasn't ours.  Take our
big boots away by limiting the number of ports initialised to the
smaller of ...NR_UARTS and the array size.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/serial/8250.c