git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Blackfin arch: Add new board support for ADZS-BF526-EZ-BRD
[safe/jmp/linux-2.6]
/
drivers
/
char
/
n_hdlc.c
diff --git
a/drivers/char/n_hdlc.c
b/drivers/char/n_hdlc.c
index
ed4e033
..
69ec639
100644
(file)
--- a/
drivers/char/n_hdlc.c
+++ b/
drivers/char/n_hdlc.c
@@
-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);