diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2017-02-07 22:30:59 +0100 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2017-02-07 23:00:21 +0100 |
commit | d9d090e52082635a24aeaefdc6bfe61ab97f38bb (patch) | |
tree | 6e725a11b5c44ee1a7ce95a0b2bcba4cae1e6f5c /target/linux/brcm2708/patches-4.4/0202-serial-Take-care-starting-a-hung-up-tty-s-port.patch | |
parent | ada91d8a245690b3bc8d2a62b391d2725aea5c8e (diff) | |
download | upstream-d9d090e52082635a24aeaefdc6bfe61ab97f38bb.tar.gz upstream-d9d090e52082635a24aeaefdc6bfe61ab97f38bb.tar.bz2 upstream-d9d090e52082635a24aeaefdc6bfe61ab97f38bb.zip |
brcm2708: remove linux 4.4 support
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/brcm2708/patches-4.4/0202-serial-Take-care-starting-a-hung-up-tty-s-port.patch')
-rw-r--r-- | target/linux/brcm2708/patches-4.4/0202-serial-Take-care-starting-a-hung-up-tty-s-port.patch | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/target/linux/brcm2708/patches-4.4/0202-serial-Take-care-starting-a-hung-up-tty-s-port.patch b/target/linux/brcm2708/patches-4.4/0202-serial-Take-care-starting-a-hung-up-tty-s-port.patch deleted file mode 100644 index 7e14036b04..0000000000 --- a/target/linux/brcm2708/patches-4.4/0202-serial-Take-care-starting-a-hung-up-tty-s-port.patch +++ /dev/null @@ -1,28 +0,0 @@ -From 5aab55736fae3c46fab5c89ff1e9a2e2bb6740d2 Mon Sep 17 00:00:00 2001 -From: Phil Elwell <phil@raspberrypi.org> -Date: Wed, 9 Mar 2016 13:28:24 +0000 -Subject: [PATCH] serial: Take care starting a hung-up tty's port - -tty_port_hangup sets a port's tty field to NULL (holding the port lock), -but uart_tx_stopped, called from __uart_start (with the port lock), -uses the tty field without checking for NULL. - -Change uart_tx_stopped to treat a NULL tty field as another stopped -indication. - -Signed-off-by: Phil Elwell <phil@raspberrypi.org> ---- - include/linux/serial_core.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/include/linux/serial_core.h -+++ b/include/linux/serial_core.h -@@ -397,7 +397,7 @@ int uart_resume_port(struct uart_driver - static inline int uart_tx_stopped(struct uart_port *port) - { - struct tty_struct *tty = port->state->port.tty; -- if (tty->stopped || port->hw_stopped) -+ if (!tty || tty->stopped || port->hw_stopped) - return 1; - return 0; - } |