diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-26 14:37:41 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-26 14:37:41 -0400 |
commit | ab20fb8139b9b3f8abcf83bbddddcc1a757a9247 (patch) | |
tree | b985231a8665925fe64d0bbd09f7ef8e2f79abb8 | |
parent | f19e6c69390251efa549ff07c863e09b94b81537 (diff) | |
parent | 3bf5d350586d98eb28ab7f86ffbd66518ffd95d8 (diff) |
Merge tag 'tty-3.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
Pull tty/serial fixes from Greg KH:
"Here are 3 fixes for TTY and serial issues that have been reported.
Nothing huge, but nice to get fixed"
* tag 'tty-3.11-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
serial: tegra: correct help message in Kconfig from 'ttyHS' to 'ttyTHS'
tty/8250_early: Don't truncate last character of options
TTY: snyclinkmp: calculating wrong addresses
-rw-r--r-- | drivers/tty/serial/8250/8250_early.c | 3 | ||||
-rw-r--r-- | drivers/tty/serial/Kconfig | 2 | ||||
-rw-r--r-- | drivers/tty/synclinkmp.c | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/drivers/tty/serial/8250/8250_early.c b/drivers/tty/serial/8250/8250_early.c index 721904f8efa9..946ddd2b3a54 100644 --- a/drivers/tty/serial/8250/8250_early.c +++ b/drivers/tty/serial/8250/8250_early.c | |||
@@ -193,7 +193,8 @@ static int __init parse_options(struct early_serial8250_device *device, | |||
193 | if (options) { | 193 | if (options) { |
194 | options++; | 194 | options++; |
195 | device->baud = simple_strtoul(options, NULL, 0); | 195 | device->baud = simple_strtoul(options, NULL, 0); |
196 | length = min(strcspn(options, " "), sizeof(device->options)); | 196 | length = min(strcspn(options, " ") + 1, |
197 | sizeof(device->options)); | ||
197 | strlcpy(device->options, options, length); | 198 | strlcpy(device->options, options, length); |
198 | } else { | 199 | } else { |
199 | device->baud = probe_baud(port); | 200 | device->baud = probe_baud(port); |
diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig index 5e3d68917ffe..1456673bcca0 100644 --- a/drivers/tty/serial/Kconfig +++ b/drivers/tty/serial/Kconfig | |||
@@ -277,7 +277,7 @@ config SERIAL_TEGRA | |||
277 | select SERIAL_CORE | 277 | select SERIAL_CORE |
278 | help | 278 | help |
279 | Support for the on-chip UARTs on the NVIDIA Tegra series SOCs | 279 | Support for the on-chip UARTs on the NVIDIA Tegra series SOCs |
280 | providing /dev/ttyHS0, 1, 2, 3 and 4 (note, some machines may not | 280 | providing /dev/ttyTHS0, 1, 2, 3 and 4 (note, some machines may not |
281 | provide all of these ports, depending on how the serial port | 281 | provide all of these ports, depending on how the serial port |
282 | are enabled). This driver uses the APB DMA to achieve higher baudrate | 282 | are enabled). This driver uses the APB DMA to achieve higher baudrate |
283 | and better performance. | 283 | and better performance. |
diff --git a/drivers/tty/synclinkmp.c b/drivers/tty/synclinkmp.c index ff171384ea52..dc6e96996ead 100644 --- a/drivers/tty/synclinkmp.c +++ b/drivers/tty/synclinkmp.c | |||
@@ -3478,7 +3478,7 @@ static int alloc_buf_list(SLMP_INFO *info) | |||
3478 | for ( i = 0; i < info->rx_buf_count; i++ ) { | 3478 | for ( i = 0; i < info->rx_buf_count; i++ ) { |
3479 | /* calculate and store physical address of this buffer entry */ | 3479 | /* calculate and store physical address of this buffer entry */ |
3480 | info->rx_buf_list_ex[i].phys_entry = | 3480 | info->rx_buf_list_ex[i].phys_entry = |
3481 | info->buffer_list_phys + (i * sizeof(SCABUFSIZE)); | 3481 | info->buffer_list_phys + (i * SCABUFSIZE); |
3482 | 3482 | ||
3483 | /* calculate and store physical address of */ | 3483 | /* calculate and store physical address of */ |
3484 | /* next entry in cirular list of entries */ | 3484 | /* next entry in cirular list of entries */ |