]> git.karo-electronics.de Git - karo-tx-linux.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)
commit44454bcdb90532b372c74e3546043d8a3a468939
tree823fa555fe7c419c4cbc0616fff5b6dadd4d81fa
parent9b4311eedb17fa88f02e4876cd6aa9a08e383cd6
[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