Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113475
b: refs/heads/master
c: ea1afd2
h: refs/heads/master
i:
  113473: b466d66
  113471: af2b897
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Oct 13, 2008
1 parent 700bb8d commit f2b7ad5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 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: 53e86317e967b9a1b1b78d6a076547144454bce1
refs/heads/master: ea1afd256258f04a290aaa7fd5c2d4deb2e79e26
27 changes: 12 additions & 15 deletions trunk/drivers/isdn/gigaset/ser-gigaset.c
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ gigaset_tty_close(struct tty_struct *tty)
}

/* prevent other callers from entering ldisc methods */
/* FIXME: should use the tty state flags */
tty->disc_data = NULL;

if (!cs->hw.ser)
Expand Down Expand Up @@ -642,10 +643,11 @@ gigaset_tty_ioctl(struct tty_struct *tty, struct file *file,
return -ENXIO;

switch (cmd) {
case TCGETS:
case TCGETA:
/* pass through to underlying serial device */
rc = n_tty_ioctl_helper(tty, file, cmd, arg);

case FIONREAD:
/* unused, always return zero */
val = 0;
rc = put_user(val, p);
break;

case TCFLSH:
Expand All @@ -659,27 +661,22 @@ gigaset_tty_ioctl(struct tty_struct *tty, struct file *file,
flush_send_queue(cs);
break;
}
/* flush the serial port's buffer */
rc = n_tty_ioctl_helper(tty, file, cmd, arg);
break;

case FIONREAD:
/* unused, always return zero */
val = 0;
rc = put_user(val, p);
break;
/* Pass through */

default:
rc = -ENOIOCTLCMD;
/* pass through to underlying serial device */
rc = n_tty_ioctl_helper(tty, file, cmd, arg);
break;
}

cs_put(cs);
return rc;
}

/*
* Poll on the tty.
* Unused, always return zero.
*
* FIXME: should probably return an exception - especially on hangup
*/
static unsigned int
gigaset_tty_poll(struct tty_struct *tty, struct file *file, poll_table *wait)
Expand Down

0 comments on commit f2b7ad5

Please sign in to comment.