]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/isdn/i4l/isdn_tty.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
[linux.git] / drivers / isdn / i4l / isdn_tty.c
index 925a7ed4a8528f904935306fed0e7f6b39c69c7d..3c5f2491a16f48f9aa365cef6423e6d8acfd74f5 100644 (file)
@@ -902,7 +902,9 @@ isdn_tty_send_msg(modem_info *info, atemu *m, char *msg)
        int j;
        int l;
 
-       l = strlen(msg);
+       l = min(strlen(msg), sizeof(cmd.parm) - sizeof(cmd.parm.cmsg)
+               + sizeof(cmd.parm.cmsg.para) - 2);
+
        if (!l) {
                isdn_tty_modem_result(RESULT_ERROR, info);
                return;
@@ -1470,9 +1472,6 @@ isdn_tty_set_termios(struct tty_struct *tty, struct ktermios *old_termios)
                    tty->termios.c_ospeed == old_termios->c_ospeed)
                        return;
                isdn_tty_change_speed(info);
-               if ((old_termios->c_cflag & CRTSCTS) &&
-                   !(tty->termios.c_cflag & CRTSCTS))
-                       tty->hw_stopped = 0;
        }
 }