summaryrefslogtreecommitdiffstats
path: root/drivers/of/of_mdio.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-08-10 22:21:19 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2009-08-10 22:31:18 +0200
commit85dfd81dc57e8183a277ddd7a56aa65c96f3f487 (patch)
tree7b09e7d8fdc4dbe7e57a3fc2df659a5506dfaa77 /drivers/of/of_mdio.c
parentMerge branch 'perfcounters-fixes-for-linus' of git://git.kernel.org/pub/scm/l... (diff)
downloadlinux-85dfd81dc57e8183a277ddd7a56aa65c96f3f487.tar.xz
linux-85dfd81dc57e8183a277ddd7a56aa65c96f3f487.zip
pty: fix data loss when stopped (^S/^Q)
Commit d945cb9cc ("pty: Rework the pty layer to use the normal buffering logic") dropped the test for 'tty->stopped' in pty_write_room(), which then causes the n_tty line discipline thing to not throttle the data properly when the tty is stopped. So instead of pausing the write due to the tty being stopped, the ldisc layer would go ahead and push it down to the pty. The pty write() routine would then refuse to take the data (because it _did_ check 'stopped'), and the data wouldn't actually be written. This whole stopped test should eventually be moved into the tty ldisc layer rather than have low-level tty drivers care about these things, but right now the fix is to just re-instate the missing pty 'stopped' handling. Reported-and-tested-by: Artur Skawina <art.08.09@gmail.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/of/of_mdio.c')
0 files changed, 0 insertions, 0 deletions