Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104703
b: refs/heads/master
c: c72f527
h: refs/heads/master
i:
  104701: 7c30813
  104699: adcdc4a
  104695: de2f8ae
  104687: 1d2897d
  104671: 8534cf0
  104639: aff9fba
  104575: 9f2f3e4
  104447: 36ecbd6
v: v3
  • Loading branch information
Paul Fulghum authored and Linus Torvalds committed Jul 22, 2008
1 parent 099ab41 commit 070bae3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 768aec0b5bccbd460bcf6e9131f19b5a26f3862d
refs/heads/master: c72f527c104cae8e767e714574238b5550879e0c
4 changes: 4 additions & 0 deletions trunk/drivers/char/n_hdlc.c
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,10 @@ static ssize_t n_hdlc_tty_write(struct tty_struct *tty, struct file *file,
/* Allocate transmit buffer */
/* sleep until transmit buffer available */
while (!(tbuf = n_hdlc_buf_get(&n_hdlc->tx_free_buf_list))) {
if (file->f_flags & O_NONBLOCK) {
error = -EAGAIN;
break;
}
schedule();

n_hdlc = tty2n_hdlc (tty);
Expand Down

0 comments on commit 070bae3

Please sign in to comment.