Merge tty-next into 3.6-rc1
[firefly-linux-kernel-4.4.55.git] / net / bluetooth / rfcomm / tty.c
index cb960773c002efafeb45b888ee8f3ba3e9208490..87ddd051881b26756d102d1ed931b230a39622fc 100644 (file)
@@ -861,7 +861,7 @@ static int rfcomm_tty_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned l
 
 static void rfcomm_tty_set_termios(struct tty_struct *tty, struct ktermios *old)
 {
-       struct ktermios *new = tty->termios;
+       struct ktermios *new = &tty->termios;
        int old_baud_rate = tty_termios_baud_rate(old);
        int new_baud_rate = tty_termios_baud_rate(new);