Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Upgrade to 4.4.50-rt62
[kvmfornfv.git]
/
kernel
/
drivers
/
tty
/
n_hdlc.c
diff --git
a/kernel/drivers/tty/n_hdlc.c
b/kernel/drivers/tty/n_hdlc.c
index
bbc4ce6
..
644ddb8
100644
(file)
--- a/
kernel/drivers/tty/n_hdlc.c
+++ b/
kernel/drivers/tty/n_hdlc.c
@@
-600,7
+600,7
@@
static ssize_t n_hdlc_tty_read(struct tty_struct *tty, struct file *file,
add_wait_queue(&tty->read_wait, &wait);
for (;;) {
add_wait_queue(&tty->read_wait, &wait);
for (;;) {
- if (test_bit(TTY_OTHER_
DONE
, &tty->flags)) {
+ if (test_bit(TTY_OTHER_
CLOSED
, &tty->flags)) {
ret = -EIO;
break;
}
ret = -EIO;
break;
}
@@
-828,7
+828,7
@@
static unsigned int n_hdlc_tty_poll(struct tty_struct *tty, struct file *filp,
/* set bits for operations that won't block */
if (n_hdlc->rx_buf_list.head)
mask |= POLLIN | POLLRDNORM; /* readable */
/* set bits for operations that won't block */
if (n_hdlc->rx_buf_list.head)
mask |= POLLIN | POLLRDNORM; /* readable */
- if (test_bit(TTY_OTHER_
DONE
, &tty->flags))
+ if (test_bit(TTY_OTHER_
CLOSED
, &tty->flags))
mask |= POLLHUP;
if (tty_hung_up_p(filp))
mask |= POLLHUP;
mask |= POLLHUP;
if (tty_hung_up_p(filp))
mask |= POLLHUP;