diff options
author | Dominik Sliwa <dominik.sliwa@toradex.com> | 2019-02-21 10:23:08 +0100 |
---|---|---|
committer | Dominik Sliwa <dominik.sliwa@toradex.com> | 2019-02-21 10:23:44 +0100 |
commit | 0bdb080c70495ea4efbed7661b4fe6100bd5adde (patch) | |
tree | 9b0e0278c74c56b724540c9c12621f2fed70a6ff /patches/0020-tty-termios/net_bluetooth_rfcomm_tty.patch | |
parent | e5561ba59729bf97f11bc11bb61fd4ef5c08c3b9 (diff) |
Revert "backports: Remove unused parts"
This reverts commit ab3fd3b9a801a9faa2619e2e65207e736f859a6d.
Diffstat (limited to 'patches/0020-tty-termios/net_bluetooth_rfcomm_tty.patch')
-rw-r--r-- | patches/0020-tty-termios/net_bluetooth_rfcomm_tty.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/patches/0020-tty-termios/net_bluetooth_rfcomm_tty.patch b/patches/0020-tty-termios/net_bluetooth_rfcomm_tty.patch new file mode 100644 index 00000000..71aa75dd --- /dev/null +++ b/patches/0020-tty-termios/net_bluetooth_rfcomm_tty.patch @@ -0,0 +1,14 @@ +--- a/net/bluetooth/rfcomm/tty.c ++++ b/net/bluetooth/rfcomm/tty.c +@@ -869,7 +869,11 @@ static int rfcomm_tty_ioctl(struct tty_s + + static void rfcomm_tty_set_termios(struct tty_struct *tty, struct ktermios *old) + { ++#if LINUX_VERSION_IS_GEQ(3,7,0) + struct ktermios *new = &tty->termios; ++#else ++ struct ktermios *new = tty->termios; ++#endif + int old_baud_rate = tty_termios_baud_rate(old); + int new_baud_rate = tty_termios_baud_rate(new); + |