Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125090
b: refs/heads/master
c: ad36b88
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Jan 2, 2009
1 parent 0fa5b42 commit 6970803
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c847d47cb7b2fa78b17c9e17ed3fbd010ee3d3ca
refs/heads/master: ad36b88e2d22e9ef42797581d3ecea9feadd9488
5 changes: 3 additions & 2 deletions trunk/net/irda/ircomm/ircomm_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,8 @@ static int ircomm_tty_open(struct tty_struct *tty, struct file *filp)
IRDA_DEBUG(2, "%s()\n", __func__ );

line = tty->index;
if ((line < 0) || (line >= IRCOMM_TTY_PORTS)) {
if (line >= IRCOMM_TTY_PORTS)
return -ENODEV;
}

/* Check if instance already exists */
self = hashbin_lock_find(ircomm_tty, line, NULL);
Expand Down Expand Up @@ -405,6 +404,8 @@ static int ircomm_tty_open(struct tty_struct *tty, struct file *filp)
* Force TTY into raw mode by default which is usually what
* we want for IrCOMM and IrLPT. This way applications will
* not have to twiddle with printcap etc.
*
* Note this is completely usafe and doesn't work properly
*/
tty->termios->c_iflag = 0;
tty->termios->c_oflag = 0;
Expand Down

0 comments on commit 6970803

Please sign in to comment.