projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ac3c93
)
tty: Fix hvc return
author
Alan Cox
<alan@linux.intel.com>
Mon, 17 Sep 2012 11:03:39 +0000
(12:03 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 17 Sep 2012 11:45:29 +0000
(
04:45
-0700)
HVC returns a size of -1 bytes for the write room in some cases.
This is bogus and not handled by the tty layer at all.
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvc_console.c
patch
|
blob
|
history
diff --git
a/drivers/tty/hvc/hvc_console.c
b/drivers/tty/hvc/hvc_console.c
index 7f80f15681cd3fa6fe743c01def27bb63ec59bff..4a652999380f691a359fc614f605cb18ede57ae9 100644
(file)
--- a/
drivers/tty/hvc/hvc_console.c
+++ b/
drivers/tty/hvc/hvc_console.c
@@
-558,7
+558,7
@@
static int hvc_write_room(struct tty_struct *tty)
struct hvc_struct *hp = tty->driver_data;
if (!hp)
- return
-1
;
+ return
0
;
return hp->outbuf_size - hp->n_outbuf;
}